Added beginning of munin plugin

This commit is contained in:
Brock Tice 2014-05-11 15:18:56 -06:00
parent aa52d6b717
commit 779e39dd62

16
tristar_monitoring_ Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
HOSTNAME=`echo ${BASH_SOURCE[0]} | sed -r 's/^.*tristar_monitoring_(.*)$/\1/'`
#printf "host_name %s\n" ${HOSTNAME}
case $1 in
config)
echo host_name ${HOSTNAME}
echo graph_title Panel Voltage
echo graph_vlabel voltage
echo voltage.label V
exit 0;;
esac
printf "voltage.value "
/usr/local/bin/read_registers.py "${HOSTNAME}" | grep 'array voltage' | sed -r "s/^array voltage: +(.*)/\1/"