From 74bf264dddc793f83b1927292a3dc45bc52ce65a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 14 Sep 2014 14:44:49 +0200 Subject: [PATCH] Adapt squidclient arg to work on squid 3.1 too --- zabbix_conf/squid.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix_conf/squid.conf b/zabbix_conf/squid.conf index ff80353..7cc7f3b 100644 --- a/zabbix_conf/squid.conf +++ b/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)