scripts/munin/machines
Vincent Le Gallic c039058708 Enregistrement des droits d'exécution. Aucune vraie modif.
Darcs n'enregistrait pas les permissions des fichiers.
2013-01-31 05:36:25 +01:00

22 lines
545 B
Bash
Executable file

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