#!/bin/bash # mrtg temp # /sys/class/hwmon/hwmon0 # set -x CPUTEMP=`echo \`cat /sys/class/hwmon/hwmon0/temp1_input\` / 1000 |bc` MBTEMP=`echo \`cat /sys/class/hwmon/hwmon0/temp2_input\` / 1000 |bc` echo $MBTEMP echo $CPUTEMP uptime |awk -F, '{print $1}' echo "Temp"