#!/bin/sh # # Plugin to monitor the overall temperature # # Parameters: # # config (required) # autoconf (optional - used by munin-config) # # Revision 0.0.1 19/05/2004 Olivier Delhomme # Licence : GPL v2 # # Magick markers (optional - used by munin-config and som installation # scripts): #%# family=auto #%# capabilities=autoconf if [ "$1" = "autoconf" ]; then echo yes exit 0 fi if [ "$1" = "config" ]; then echo 'graph_title Température du processeur' echo 'graph_args --base 1000 -l 0 ' echo 'graph_vlabel Degrés celcius' echo 'temp.label temperature' echo 'temp.draw LINE2' exit 0 fi echo -n "temp.value " cat /proc/acpi/thermal_zone/THRM/temperature | cut -d: -f2 | sed s/[\ \t]//g | sed s/[cCfF]//