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

Initial version

This commit is contained in:
lastta 2011-06-08 13:47:51 +02:00 committed by Steve Schnepp
parent 074e0ae0f0
commit 86207d7af9

View File

@ -0,0 +1,28 @@
#!/bin/bash
if [ "$1" == "config" ] ; then
echo "graph_title HP server fan speed"
echo "graph_vlabel speed"
echo "graph_category environment"
echo "graph_info This graph shows the speed of the system fans"
echo 'processor_zone_fan.label Processor Zone fan speed'
echo 'system_board_fan.label System Board fan speed'
exit 0
fi
#ID TYPE LOCATION STATUS REDUNDANT FAN SPEED
#1 Var. Speed Processor Zone Normal N/A Low ( 10)
#2 Var. Speed System Board Normal N/A Low ( 10)
/sbin/hplog -f | ( while read a b c d e f g h i j k l m
do
if [ "$d" == "Processor" ] ; then
echo -n "processor_zone_fan.value "
echo $j | sed 's/)//'
elif [ "$d" == "System" ] ; then
echo -n "system_board_fan.value "
echo $j | sed 's/)//'
fi
done
)