diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-10-03 12:56:20 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-10-03 12:56:20 +0300 |
commit | 71b72e4f59b129ced0a1d15e5ce3b21370edfbbd (patch) | |
tree | 3e393055191fdb756f3c449bb2a25f463b7a143d /charts.d/squid.chart.sh | |
parent | 3d916bd468a12150385083d998c866f275c5ab64 (diff) |
code optimizations; added temperature charts.d plugin
Diffstat (limited to 'charts.d/squid.chart.sh')
-rwxr-xr-x | charts.d/squid.chart.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/charts.d/squid.chart.sh b/charts.d/squid.chart.sh index e764a03b57..fad8f9f7a3 100755 --- a/charts.d/squid.chart.sh +++ b/charts.d/squid.chart.sh @@ -6,7 +6,7 @@ squid_url="cache_object://$squid_host:$squid_port/counters" squid_update_every=5 squid_get_stats() { -nc $squid_host $squid_port <<EOF + nc $squid_host $squid_port <<EOF GET $squid_url HTTP/1.0 Host: $squid_host:$squid_port Accept: */* @@ -63,7 +63,7 @@ squid_update() { # for each dimension # remember: KEEP IT SIMPLE AND SHORT - # 1. wget the counters page from squid + # 1. get the counters page from squid # 2. sed to remove spaces; replace . with _; remove spaces around =; prepend each line with: local squid_ # 3. egrep lines starting with: # local squid_client_http_ then one or more of these a-z 0-9 _ then = and one of more of 0-9 |