2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

tidied up

This commit is contained in:
Paul M 2011-01-20 14:10:10 +01:00 committed by Steve Schnepp
parent 104797a874
commit 5c46d3fc72

View file

@ -1,7 +1,12 @@
#!/bin/sh #!/bin/sh
# http://exchange.munin-monitoring.org/plugins/alertme_power/details
#
# alertme_power relies on http://code.google.com/p/alertmepi/ # alertme_power relies on http://code.google.com/p/alertmepi/
# to have been installed and working # 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 # add to the plugins-conf.d/munin so that it can read the /etc/alertme files
# [alertme_*] # [alertme_*]
# user root # 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 /usr/local/bin/alertmepi.pl -d | egrep "is the power controller named|is the powerclamp named" >> $TMPFILE
fi fi
echo "graph_title Alertme Power" echo "graph_title AlertMe Power"
echo "graph_category environmental" 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 head -1 $TMPFILE
echo "graph_vlabel power (W)" echo "graph_vlabel power (W)"
@ -42,6 +47,4 @@ do
done done
) )
#echo "ping_rtt.value $RTTAVG" # end alertme_power munin_plugin
#echo "ping_loss.value $PKTLOSS"