root / plugins / sensors / hplog_f-a-hp-proliant-server-fans-speed @ e5ce7492
Historique | Voir | Annoter | Télécharger (907 octets)
| 1 | 86207d7a | lastta | #!/bin/bash |
|---|---|---|---|
| 2 | |||
| 3 | if [ "$1" == "config" ] ; then |
||
| 4 | echo "graph_title HP server fan speed" |
||
| 5 | echo "graph_vlabel speed" |
||
| 6 | f51bde4b | xavier renaut | echo "graph_category sensors" |
| 7 | 86207d7a | lastta | echo "graph_info This graph shows the speed of the system fans" |
| 8 | fe24045c | Pmoranga | |
| 9 | f51bde4b | xavier renaut | 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" }'
|
| 10 | 86207d7a | lastta | exit 0 |
| 11 | fi |
||
| 12 | |||
| 13 | #ID TYPE LOCATION STATUS REDUNDANT FAN SPEED |
||
| 14 | #1 Var. Speed Processor Zone Normal N/A Low ( 10) |
||
| 15 | #2 Var. Speed System Board Normal N/A Low ( 10) |
||
| 16 | f51bde4b | xavier renaut | #6 Var. Speed System Board Normal Yes Low ( 13) |
| 17 | #ID TYPE LOCATION STATUS REDUNDANT FAN SPEED |
||
| 18 | # 1 Var. Speed Virtual Normal N/A Low ( 19) |
||
| 19 | 86207d7a | lastta | |
| 20 | fe24045c | Pmoranga | |
| 21 | f51bde4b | xavier renaut | hplog -f | perl -ne 'if ( m/(System|Processor|Virtual)/) { $t=lc($1); $count[$t]++; m/\( *(\d+)\)/; print "${t}_$count[$t].value $1\n" }' |
