scripts/munin/mge_batt
Antoine Durand-Gasselin 4a68475e34 [wiki-lenny] suppression de static/
darcs-hash:20090314092631-bd074-b01256aeaf71e935851b3ecdbd623eaae8c9e8a1.gz
2009-03-14 10:26:31 +01:00

16 lines
383 B
Bash

#!/bin/sh
#
# Plugin to monitor MGE battery state.
if [ "$1" = "config" ]; then
echo 'host_name pulsar.crans.org'
echo 'graph_category Batteries'
echo 'graph_title Etat batteries'
echo 'graph_vlabel charge (%)'
echo 'pcent.label Charge'
exit 0
fi
cmd="snmpget -O vq -v1 -c public pulsar.adm.crans.org SNMPv2-SMI::enterprises.705.1."
echo "pcent.value $(${cmd}5.2.0)"