Adapt squidclient arg to work on squid 3.1 too

This commit is contained in:
Daniel Berteaud 2014-09-14 14:44:49 +02:00
parent 0de4e58976
commit 74bf264ddd
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.request_hit_ratio,squidclient mgr:info|grep 'Request Hit Ratios:'|cut -d':' -f3|cut -d',' -f1|tr -d ' %'
UserParameter=squid.request_hit_ratio,squidclient mgr:info|grep -P '(Hits as % of all requests)|(Request Hit Ratios):'|cut -d':' -f3|cut -d',' -f1|tr -d ' %'
# Description: Squid Byte Hit Ratio
# Type: Agent or Agent (active)
@ -18,7 +18,7 @@ UserParameter=squid.request_hit_ratio,squidclient mgr:info|grep 'Request Hit Rat
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.byte_hit_ratio,squidclient mgr:info|grep 'Byte Hit Ratios:'|cut -d':' -f3|cut -d',' -f1|tr -d ' %'
UserParameter=squid.byte_hit_ratio,squidclient mgr:info|grep -P '(Hits as % of bytes sent)|(Byte Hit Ratios):'|cut -d':' -f3|cut -d',' -f1|tr -d ' %'
# Description: Squid Average HTTP request per minute
# Type: Agent or Agent (active)