Adapt squidclient arg to work on squid 3.1 too

tags/zabbix-agent-addons-0.2.20-1 0.1.19_el5
Daniel Berteaud 10 years ago
parent 0de4e58976
commit 74bf264ddd
  1. 4
      zabbix_conf/squid.conf

@ -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)

Loading…
Cancel
Save