[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RaQ4 MRTG packages



On Wednesday, November 5, 2003, at 02:15 AM, Lauchlin wrote:
On 05/11/2003, at 11:08 AM, Paul Shuttleworth wrote:
- graph CPU Temp

If you add this to /usr/local/bin/mrtgtools/system:
if [ "$TYPE" = "temp" ]; then
    INDATA=`cat /proc/cpuinfo | grep temp | cut -d ':' -f2`
    OUTDATA=`cat /proc/cpuinfo | grep temp | cut -d ':' -f2`
fi

And this to mrtg.cfg:
#----------------------------
# Temperature
#----------------------------

Title[temp]: System temperature
PageTop[temp]: <H1>System temperature</H1>
Target[temp]: `/usr/local/bin/mrtgtools/system temp`
MaxBytes[temp]: 100

That should do the trick

René Mølsted