mirror of
https://github.com/brocktice/tristar-python-modbus.git
synced 2025-05-15 14:20:12 -07:00
Added beginning of munin plugin
This commit is contained in:
parent
aa52d6b717
commit
779e39dd62
16
tristar_monitoring_
Executable file
16
tristar_monitoring_
Executable 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/"
|
Loading…
x
Reference in New Issue
Block a user