]> arthur.barton.de Git - netdata.git/commitdiff
fix for squid not respecting configuration
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 10 May 2015 15:54:58 +0000 (18:54 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 10 May 2015 15:54:58 +0000 (18:54 +0300)
charts.d/squid.chart.sh

index cc2519f0a19994e770e2380715291399fe6b63d3..e764a03b57ed60e04f72a52b8db04bc91eaadd1d 100755 (executable)
@@ -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" ]