2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Remove sensors that use lm_sensors. These are already supported by sensors_ in main repository.

This commit is contained in:
Diego Elio Pettenò 2012-08-09 15:59:50 -07:00
parent a5f447999c
commit 80956e267e
4 changed files with 0 additions and 199 deletions

View File

@ -1,53 +0,0 @@
#!/bin/sh
#
# Plugin to monitor the CPU temperature through lm-sensors.
# v1.0 (2008-02-15) Oliver Ladner <oli@lugh.ch>
#
# Requirements:
# - A configured lm-sensors installation
# - Supported device (see http://www.lm-sensors.org/wiki/Devices)
# - grep, sed and awk
#
# Todo:
# - Ability to monitor multiple sensors like fan speeds, voltage etc.
# - Better checks (availabilty of lm-sensors, sensors itself, path names)
#
# Parameters supported:
#
# config
# autoconf
#
# Magic markers:
#%# capabilities=autoconf
DETECTED_SENSORS=`sensors -U -A | wc -l`
case $1 in
config)
cat <<'EOM'
graph_title CPU temperature
graph_vlabel CPU temperature in °C
graph_options light
graph_info This graph shows CPU temperature in °C
temp.label temp
temp.draw LINE1
graph_category sensors
temp.warning 65
temp.critical 80
EOM
exit 0;;
esac
case $1 in
autoconf)
if [ "$DETECTED_SENSORS" -eq 0 ]; then
echo "no"
exit 1
else
echo "yes"
exit 0
fi
esac
echo -n "temp.value "
sensors | grep 'CPU Temp' | sed 's/[+|°|C]//g' | awk {'print $3'}

View File

@ -1,40 +0,0 @@
#!/bin/sh
#
# Plugin to graph temperatures based on info from /sys/devices/platform/coretemp.*
#
# Parameters:
#
#
#
#%# family=auto
#%# capabilities=autoconf
if [ "$1" = "autoconf" ]; then
if [ -d /sys/devices/platform/coretemp.0 ]; then
echo yes
exit 0
else
echo "no (/sys/devices/platform/coretemp.* not there)"
exit 1
fi
fi
if [ "$1" = "config" ]; then
echo 'graph_title CPU temperature'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel temp in °C'
echo 'graph_category sensors'
echo 'graph_info This graph shows temperatures based on /sys/devices/platform/coretemp.*/.'
echo cputemp.info CPU temperature.
for c in /sys/devices/platform/coretemp.*; do
core=${c#/sys/devices/platform/coretemp.}
label=`cat $c/temp1_label`
echo core${core}.label $label
done
fi
for c in /sys/devices/platform/coretemp.*; do
core=${c#/sys/devices/platform/coretemp.}
temp=$((`cat $c/temp1_input` / 1000))
echo core${core}.value $temp
done

View File

@ -1,37 +0,0 @@
#!/bin/sh
#
# Plugin to graph temperatures based on i5k_amb-isa-0000 FB-DIMM sensor
#
# Parameters:
#
#
#
#%# family=auto
#%# capabilities=autoconf
SENSORS="/usr/bin/sensors"
if [ "$1" = "autoconf" ]; then
# testing if the i5k FB-DIMM sensors are working. (0->working)
RETVAL=`$SENSORS -A i5k_amb-isa-0000|grep -q DIMM; echo $?`
if [ $RETVAL = 0 ]; then
echo yes
exit 0
else
echo "no (i5k FB-DIMM sensors not working.)"
exit 1
fi
fi
if [ "$1" = "config" ]; then
echo 'graph_title FB-DIMM temperature'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel temp in °C'
echo 'graph_category sensors'
echo 'graph_info This graph shows FB-DIMM temperatures based on reports generated by intel 5000 series chipsets.'
echo fbdimmtemp.info FB-DIMM temperature.
$SENSORS -A i5k_amb-isa-0000|grep DIMM|tr -d ":+"|awk -F "." '{print $2}'|awk '{print "ch"$1"dimm"$3".label Channel "$1" DIMM "$3}'
exit 0
fi
$SENSORS -A i5k_amb-isa-0000|grep DIMM|tr -d ":+"|awk -F "." '{print $2}'|awk '{print "ch"$1"dimm"$3".value "$4}'

View File

@ -1,69 +0,0 @@
#!/bin/sh
#
# k8temp
#
# Plugin to monitor the CPU temperature through lm-sensors
# on multicore AMD cpus
#
# Author: Marc Schiffbauer <marc@schiffbauer.net>
#
# Requirements:
# - A configured lm-sensors installation with k8temp kernel module
# - rewuired shell commands: sensors, grep, sed, uniq, cut
#
# Parameters supported:
#
# config
# autoconf
#
# Magic markers:
#%# capabilities=autoconf
# VERSION 1.0
case $1 in
config)
I=1
LAST_CORE=""
echo "graph_title CPU temperature"
echo "graph_vlabel temperature in °C"
echo "graph_options light"
echo "graph_info This graph shows temperature of all CPU cores in °C"
echo "graph_category sensors"
sensors -uA | grep "^Core" | while read CORE FOO TEMP REST; do
if [ "$LAST_CORE" == "$CORE" ]; then
I=$((I+1))
else
I=1
fi
LAST_CORE=$CORE
CORE_NUM=$(echo $CORE | sed 's/Core//')
echo "core${CORE_NUM}_${I}.label Core ${CORE_NUM} sensor $I"
#echo "core${CORE_NUM}_${I}.draw LINE1"
echo "core${CORE_NUM}_${I}.warning 65"
echo "core${CORE_NUM}_${I}.critical 80"
done
exit 0
;;
autoconf)
if [ "$(sensors -uA | grep "^Core" | uniq)" ]; then
echo "yes"
exit 0
else
echo "no"
exit 1
fi
esac
sensors -uA | grep "^Core" | while read CORE FOO TEMP REST; do
if [ "$LAST_CORE" == "$CORE" ]; then
I=$((I+1))
else
I=1
fi
LAST_CORE=$CORE
CORE_NUM=$(echo $CORE | sed 's/Core//')
TEMP=$(echo $TEMP | cut -d"." -f1)
echo "core${CORE_NUM}_${I}.value $TEMP"
done