scripts/munin/mge_temp
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

17 lines
437 B
Bash
Executable file

#!/bin/sh
if [ "$1" = "config" ]; then
echo 'host_name pulsar.crans.org'
echo 'graph_category Environnement'
echo 'graph_title Temperature 0B'
echo 'graph_vlabel Température en (°C)'
echo 'temp.label Température 0B'
echo 'temp.warning 22'
echo 'temp.critical 24'
exit 0
fi
cmd="snmpget -O vq -v1 -c public pulsar.adm.crans.org SNMPv2-SMI::enterprises.705.1."
t=$(${cmd}8.1.0)
echo "temp.value $(($t/10)).$(($t%10))"