scripts/munin/mge_hygro
Nicolas Dandrimont e35cbd92e9 [munin/mge_*] Mise à jour pour le nouvel onduleur
darcs-hash:20090116225327-ffbb2-3d0017a8d835ed1b3241176de04f92f0d6ca8565.gz
2009-01-16 23:53:27 +01:00

15 lines
379 B
Bash
Executable file

#!/bin/sh
if [ "$1" = "config" ]; then
echo 'host_name pulsar.crans.org'
echo 'graph_category Environnement'
echo 'graph_title Hygrometrie 0B'
echo 'graph_vlabel Humitidé (%)'
echo 'hygro.label Humidité 0B'
exit 0
fi
cmd="snmpget -O vq -v1 -c public pulsar.adm.crans.org SNMPv2-SMI::enterprises.705.1."
t=$(${cmd}8.2.0)
echo "hygro.value $(($t/10)).$(($t%10))"