scripts/munin/mge_intensite
Antoine Durand-Gasselin 8de055f921 Les accents dans les graphes de munin, c'est trop gay
Et spamassassin dtecte les messages d'erreur comme des spam

darcs-hash:20081005185753-bd074-f0dd4af4dfead90a538f8cfc973e37a6738d398c.gz
2008-10-05 20:57:53 +02:00

24 lines
590 B
Bash
Executable file

#!/bin/sh
#
# Plugin to monitor MGE battery state.
if [ "$1" = "config" ]; then
echo 'host_name pulsar.crans.org'
echo 'graph_category B4'
echo 'graph_args --lower-limit 0'
echo 'graph_title Intensite'
echo 'graph_vlabel I (A)'
echo 'input.label Entrée'
echo 'input.min 0'
echo 'output.label Sortie'
echo 'output.min 0'
exit 0
fi
cmd="snmpget -O vq -v1 -c public pulsar.adm.crans.org SNMPv2-SMI::enterprises.705.1."
input=$(${cmd}6.2.1.6.0)
output=$(${cmd}7.2.1.5.0)
echo "input.value $(($input/10)).$(($input%10))"
echo "output.value $(($output/10)).$(($output%10))"