On regroupe les plugins munin dans un rpertoire commun toutes les machines
darcs-hash:20060420130121-72cb0-50f87f8f01382a2ddc9afec1b1b6e02890d8d32c.gz
This commit is contained in:
parent
674ee00ed0
commit
f672fa493b
23 changed files with 1451 additions and 0 deletions
21
munin/mge_temps
Executable file
21
munin/mge_temps
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/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 Autonomie'
|
||||
echo 'graph_vlabel t (minutes)'
|
||||
echo 'remain.label Autonomie restante'
|
||||
echo 'charg.label Temps de recharge'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cmd="snmpget -O vq -v1 -c public pulsar.adm.crans.org SNMPv2-SMI::enterprises.705.1."
|
||||
|
||||
remain=$(${cmd}5.1.0) # autonomie restante
|
||||
charg=$(${cmd}5.8.0) # temps avant charge complère des batteries
|
||||
echo "remain.value $(($remain/60)).$(($remain%60*10/6))"
|
||||
echo "charg.value $(($charg/60)).$(($charg%60*10/6))"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue