mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +00:00
added virtual fan - used on blades
This commit is contained in:
parent
8439151d77
commit
f51bde4ba7
1 changed files with 6 additions and 3 deletions
|
@ -3,16 +3,19 @@
|
|||
if [ "$1" == "config" ] ; then
|
||||
echo "graph_title HP server fan speed"
|
||||
echo "graph_vlabel speed"
|
||||
echo "graph_category environment"
|
||||
echo "graph_category sensors"
|
||||
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" }'
|
||||
hplog -f | perl -ne 'if ( m/(System|Processor|Virtual)/) { $t=lc($1); $count[$t]++; print $t."_".$count[$t] . ".label " . $t . " fan speed $count[$t] \n" }'
|
||||
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)
|
||||
#6 Var. Speed System Board Normal Yes Low ( 13)
|
||||
#ID TYPE LOCATION STATUS REDUNDANT FAN SPEED
|
||||
# 1 Var. Speed Virtual Normal N/A Low ( 19)
|
||||
|
||||
|
||||
hplog -f | perl -ne 'if ( m/(System|Processor)/) { $t=lc($1); $count[$t]++; m/\( *(\d+)\)/; print $t."_".$count[$t] . " " . $1 . "\n" }'
|
||||
hplog -f | perl -ne 'if ( m/(System|Processor|Virtual)/) { $t=lc($1); $count[$t]++; m/\( *(\d+)\)/; print "${t}_$count[$t].value $1\n" }'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue