From 5c46d3fc7259af619582e036a73d800bd786d991 Mon Sep 17 00:00:00 2001 From: Paul M Date: Thu, 20 Jan 2011 14:10:10 +0100 Subject: [PATCH] tidied up --- plugins/other/alertme_power | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/other/alertme_power b/plugins/other/alertme_power index 9600abb1..2816a93c 100755 --- a/plugins/other/alertme_power +++ b/plugins/other/alertme_power @@ -1,7 +1,12 @@ #!/bin/sh +# http://exchange.munin-monitoring.org/plugins/alertme_power/details +# # alertme_power relies on http://code.google.com/p/alertmepi/ # to have been installed and working # +# 20110120 - update to use correct mixed case for AlertMe and remove cruft +# left over from creating this plugin from another script +# # add to the plugins-conf.d/munin so that it can read the /etc/alertme files # [alertme_*] # user root @@ -16,9 +21,9 @@ if [ "$1" = "config" ] ; then /usr/local/bin/alertmepi.pl -d | egrep "is the power controller named|is the powerclamp named" >> $TMPFILE fi - echo "graph_title Alertme Power" + echo "graph_title AlertMe Power" echo "graph_category environmental" - echo -n "graph_info this graph shows alertme power measurements for " + echo -n "graph_info this graph shows AlertMe power measurements for " head -1 $TMPFILE echo "graph_vlabel power (W)" @@ -42,6 +47,4 @@ do done ) -#echo "ping_rtt.value $RTTAVG" -#echo "ping_loss.value $PKTLOSS" - +# end alertme_power munin_plugin