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
24
munin/mge_intensite
Executable file
24
munin/mge_intensite
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/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 Intensité'
|
||||
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))"
|
Loading…
Add table
Add a link
Reference in a new issue