2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/environment/hplog_f-a-hp-proliant-server-fans-speed

19 lines
708 B
Plaintext
Raw Normal View History

2011-06-08 13:47:51 +02:00
#!/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"
hplog -f | perl -ne 'if ( m/(System|Processor)/) { $t=lc($1); $count[$t]++; print $t."_".$count[$t] . ".label " . $t . " fan speed $count[$t] \n" }'
2011-06-08 13:47:51 +02:00
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)
hplog -f | perl -ne 'if ( m/(System|Processor)/) { $t=lc($1); $count[$t]++; m/\( *(\d+)\)/; print $t."_".$count[$t] . " " . $1 . "\n" }'