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

22
munin/machines Executable file
View file

@ -0,0 +1,22 @@
#!/bin/sh
if [ "$1" = "config" ]; then
# echo 'host_name adherents'
echo 'graph_title Machines connectées'
echo "graph_args --base 1000 --lower-limit 0"
echo "graph_vlabel nombre de machines"
echo 'fixe.label Fixe'
echo 'fixe.draw AREA'
echo 'adm.label ADM'
echo 'adm.draw STACK'
echo 'ens.label ENS'
echo 'ens.draw STACK'
echo 'total.label Total'
exit 0
fi
echo "fixe.value" `arp -a -i crans | wc -l`
echo "adm.value" `arp -a -i crans.2 | wc -l`
echo "ens.value" `arp -a -i ens | wc -l`
echo "total.value" `arp -a | wc -l`