@cryptotaxi247 / netdata-1 / commits / 1ced06525

fix for squid not respecting configuration

Costa Tsaousis (ktsaou) committed May 10, 2015 at 18:54 UTC 1ced06525aebfb8f77c8d46aad7b835ffc356009
1 file changed +3 -1
charts.d/squid.chart.sh
+3 -1
@@ -1,7 +1,7 @@
1 #!/bin/sh
2
3 squid_host="127.0.0.1"
4 -squid_port="3127"
4 +squid_port="3128"
5 squid_url="cache_object://$squid_host:$squid_port/counters"
6 squid_update_every=5
7
@@ -16,6 +16,8 @@ EOF
16 }
17
18 squid_check() {
19 + squid_url="cache_object://$squid_host:$squid_port/counters"
20 +
21 # check once if the url works
22 local x="$(squid_get_stats | grep client_http.requests)"
23 if [ ! $? -eq 0 -o -z "$x" ]