From 86207d7af99cdb614b1fef0023193758f9ecf4a6 Mon Sep 17 00:00:00 2001 From: lastta Date: Wed, 8 Jun 2011 13:47:51 +0200 Subject: [PATCH] Initial version --- .../hplog_f-a-hp-proliant-server-fans-speed | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 plugins/other/hplog_f-a-hp-proliant-server-fans-speed diff --git a/plugins/other/hplog_f-a-hp-proliant-server-fans-speed b/plugins/other/hplog_f-a-hp-proliant-server-fans-speed new file mode 100755 index 00000000..81c86902 --- /dev/null +++ b/plugins/other/hplog_f-a-hp-proliant-server-fans-speed @@ -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 +)