From 779e39dd629c4b3155a2b737f5145bae6d0471b5 Mon Sep 17 00:00:00 2001 From: Brock Tice Date: Sun, 11 May 2014 15:18:56 -0600 Subject: [PATCH] Added beginning of munin plugin --- tristar_monitoring_ | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tristar_monitoring_ diff --git a/tristar_monitoring_ b/tristar_monitoring_ new file mode 100755 index 0000000..7a348d1 --- /dev/null +++ b/tristar_monitoring_ @@ -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/"