mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-02 22:28:24 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -4,7 +4,7 @@
|
|||
# License GPL V2 or higher
|
||||
#
|
||||
# Abstract
|
||||
# munin plugin that logs the cache mean services times
|
||||
# munin plugin that logs the cache mean services times
|
||||
# Requires netcat (here nc)
|
||||
#
|
||||
# Authors
|
||||
|
@ -19,7 +19,7 @@ port=${squidport:-3128}
|
|||
if [ "$1" = "autoconf" ]; then
|
||||
SQUID_STATS=`printf "GET cache_object://$host/info HTTP/1.0\n\n" | netcat $host $port`
|
||||
if [ -n "${SQUID_STATS}" ]; then
|
||||
echo yes
|
||||
echo yes
|
||||
exit 0
|
||||
else
|
||||
echo "no (HTTP GET failed)"
|
||||
|
@ -35,7 +35,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_vlabel median response times (s)'
|
||||
|
||||
echo 'mean_http.label Http'
|
||||
echo 'mean_cmis.label Cache misses'
|
||||
echo 'mean_cmis.label Cache misses'
|
||||
echo 'mean_chits.label Cache hits'
|
||||
echo 'mean_nhits.label Near hits'
|
||||
echo 'mean_nmr.label Not-modified replies'
|
||||
|
@ -43,7 +43,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'mean_icpq.label Icp queries'
|
||||
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
SQUID_TIME=$(printf "GET cache_object://$host/info HTTP/1.0\n\n" | nc $host $port)
|
||||
|
||||
|
@ -57,7 +57,7 @@ SQUID_TIME_ICP_QUERIES=$(echo "$SQUID_TIME" | grep "ICP Queries" | cut -d':' -f2
|
|||
|
||||
echo "mean_http.value $SQUID_TIME_HTTP"
|
||||
echo "mean_cmis.value $SQUID_TIME_CACHE_MISSES"
|
||||
echo "mean_chits.value $SQUID_TIME_CACHE_HITS"
|
||||
echo "mean_chits.value $SQUID_TIME_CACHE_HITS"
|
||||
echo "mean_nhits.value $SQUID_TIME_NEAR_HITS"
|
||||
echo "mean_nmr.value $SQUID_TIME_NM_REPLIES"
|
||||
echo "mean_dnsl.value $SQUID_TIME_DNS_LOOKUPS"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue