diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-05-10 18:54:58 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-05-10 18:54:58 +0300 |
commit | 1ced06525aebfb8f77c8d46aad7b835ffc356009 (patch) | |
tree | d5c825554503c1e8cffc7c2fe2935a18155c014d /charts.d/squid.chart.sh | |
parent | df71e1abdc55a94e1d514d9f6c5c494ff963afa3 (diff) |
fix for squid not respecting configuration
Diffstat (limited to 'charts.d/squid.chart.sh')
-rwxr-xr-x | charts.d/squid.chart.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/charts.d/squid.chart.sh b/charts.d/squid.chart.sh index cc2519f0a1..e764a03b57 100755 --- a/charts.d/squid.chart.sh +++ b/charts.d/squid.chart.sh @@ -1,7 +1,7 @@ #!/bin/sh squid_host="127.0.0.1" -squid_port="3127" +squid_port="3128" squid_url="cache_object://$squid_host:$squid_port/counters" squid_update_every=5 @@ -16,6 +16,8 @@ EOF } squid_check() { + squid_url="cache_object://$squid_host:$squid_port/counters" + # check once if the url works local x="$(squid_get_stats | grep client_http.requests)" if [ ! $? -eq 0 -o -z "$x" ] |