1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

- have some dirs

This commit is contained in:
Steve Schnepp 2012-02-13 18:24:46 +01:00
parent 0b089ea777
commit 08346aac58
687 changed files with 0 additions and 0 deletions

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
)

View file

@ -0,0 +1,43 @@
#!/bin/bash
if [ "$1" == "config" ] ; then
echo "graph_title HP server temperatures"
echo "graph_vlabel celsius"
echo "graph_category environment"
echo "graph_info temperatures read using hpscan"
echo "processor_zone.label Processor zone temperature"
echo "io_zone.label I/O zone temperature"
echo "processor0.label Processor 0 temperature"
echo "processor1.label Processor 1 temperature"
echo "psu_bay.label PSU bay temperature"
exit 0
fi
#ID TYPE LOCATION STATUS CURRENT THRESHOLD
#1 ADM1022 Processor Zone Normal 104F/ 40C 143F/ 62C
#2 ADM1022 CPU (1) Normal 96F/ 36C 163F/ 73C
#3 ADM1022 I/O Zone Normal 118F/ 48C 154F/ 68C
#4 ADM1022 CPU (2) Normal 127F/ 53C 163F/ 73C
#5 ADM1022 Pwr. Supply Bay Normal 95F/ 35C 127F/ 53C
CPUNUMBER=0
/sbin/hplog -t | ( while read a b c d e f g h i j k l m
do
if [ "$c" == "Processor" ] ; then
echo -n "processor_zone.value "
echo $g | sed 's/C//'
elif [ "$c" == "I/O" ] ; then
echo -n "io_zone.value "
echo $g | sed 's/C//'
elif [ "$c" == "CPU" ] ; then
echo -n "processor$CPUNUMBER.value "
echo $g | sed 's/C//'
CPUNUMBER=`expr $CPUNUMBER + 1`
elif [ "$c" == "Pwr." ] ; then
echo -n "psu_bay.value "
echo $h | sed 's/C//'
fi
done
)