Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/squid/squid_times
4 4
# License GPL V2 or higher
5 5
#
6 6
# Abstract
7
# munin plugin that logs the cache mean services times 
7
# munin plugin that logs the cache mean services times
8 8
# Requires netcat (here nc)
9 9
#
10 10
# Authors
......
19 19
if [ "$1" = "autoconf" ]; then
20 20
	SQUID_STATS=`printf "GET cache_object://$host/info HTTP/1.0\n\n" | netcat $host $port`
21 21
	if [ -n "${SQUID_STATS}" ]; then
22
		echo yes 
22
		echo yes
23 23
		exit 0
24 24
	else
25 25
		echo "no (HTTP GET failed)"
......
35 35
	echo 'graph_vlabel median response times (s)'
36 36

  
37 37
	echo 'mean_http.label Http'
38
	echo 'mean_cmis.label Cache misses'	
38
	echo 'mean_cmis.label Cache misses'
39 39
	echo 'mean_chits.label Cache hits'
40 40
	echo 'mean_nhits.label Near hits'
41 41
	echo 'mean_nmr.label Not-modified replies'
......
43 43
	echo 'mean_icpq.label Icp queries'
44 44

  
45 45
	exit 0
46
fi 
46
fi
47 47

  
48 48
SQUID_TIME=$(printf "GET cache_object://$host/info HTTP/1.0\n\n" | nc $host $port)
49 49

  
......
57 57

  
58 58
echo "mean_http.value $SQUID_TIME_HTTP"
59 59
echo "mean_cmis.value $SQUID_TIME_CACHE_MISSES"
60
echo "mean_chits.value $SQUID_TIME_CACHE_HITS" 
60
echo "mean_chits.value $SQUID_TIME_CACHE_HITS"
61 61
echo "mean_nhits.value $SQUID_TIME_NEAR_HITS"
62 62
echo "mean_nmr.value $SQUID_TIME_NM_REPLIES"
63 63
echo "mean_dnsl.value $SQUID_TIME_DNS_LOOKUPS"

Formats disponibles : Unified diff