#!/bin/sh # # Plugin to monitor Temperature with HidTEMPerNTC from pcsensors # 2011/07/17 EanderAlx # # ln -s /usr/share/munin/plugins/hid-temper-ntc /etc/munin/plugins/hid-temper-ntc # # Magic markers (optional - only used by munin-config and some installation scripts): #%# family=contrib if [ "$1" = "config" ]; then MODEL="Hid TEMPerNTC" LOCATION="Hid TEMPerNTC PC Sensor" NAME1="Hid TEMPerNTC USB Temp Sensor" echo "graph_title $LOCATION - Temperatur" echo "graph_args --base 1000" echo "graph_vlabel Celsius" echo "graph_category sensors" echo "graph_info This graph shows Temperatur data from $LOCATION" echo "temp1.label $NAME1" echo "temp1.type GAUGE" echo "temp1.info Celsius." echo "temp1.colour 00ff00" echo "temp1.max 50" echo "temp1.min -10" exit 0 fi WERT1=`/usr/local/bin/pcsensor | awk '{print $NF}' | cut -d "C" -f1` echo -ne "temp1.value $WERT1"