On regroupe les plugins munin dans un rpertoire commun toutes les machines

darcs-hash:20060420130121-72cb0-50f87f8f01382a2ddc9afec1b1b6e02890d8d32c.gz
This commit is contained in:
salles 2006-04-20 15:01:21 +02:00
parent 674ee00ed0
commit f672fa493b
23 changed files with 1451 additions and 0 deletions

18
munin/ntp_server Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
if [ "$1" = "config" ]; then
echo "graph_title NTP servers offset"
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel offset in µsec'
ntpq -p | grep -i '^[*+-]' | awk '{gsub("^.","",$1) ; gsub("[.-]", "_", $1); print $1 ".label " $1}'
exit 0
fi;
ntpq -p | grep -i '^[*+-]' | awk '{gsub("^.","",$1) ; gsub("[.-]", "_", $1); print $1 ".value " $9}'