[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Hobbit viewing temperature in Hobbit
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Hobbit viewing temperature in Hobbit
- From: "Josh Luthman" <josh (at) imaginenetworksllc.com>
- Date: Wed, 10 Oct 2007 10:09:20 -0400
- References: <470BF80D.7070703 (at) weatherdata.com> <78ca5ea20710091924p780004fewfcc7078e288f4ee9 (at) mail.gmail.com> <470C5AF9.4030406 (at) vegasystems.com>
I'm sure that the script you found on deadcat was unique to a certain system
build. The first thing I would check is `which /usr/bin/sensors` to see if
you had that utility.
On 10/10/07, Maik Heinelt <maik (at) vegasystems.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
> I`d like to view the temperature of my machines in Hobbit.
> I only found a temperature script on www.deadcat.net, but there wans`t a
> manual how to use it.
> I also found the following script, but it doesn`t work on my linux
> machines.
>
> #!/bin/sh
>
> # THRESHOLD VALUES FOR TEMPERATURE
> YTMP=72
> RTMP=80
> #
> SENSORS="/usr/bin/sensors -f"
> STMP=${BBTMP}/SENSE.$$
> COLOR=green
> MSG=default
> #
> ${SENSORS} > ${STMP}
> # PARSE TEMPERATURE INFORMATION.
>
> TMP=`${GREP} -i temp ${STMP}|cut -d"(" -f1|cut -d"?" -f1|cut -d"+"
> - -f2|cut -d"." -f1`
>
> if [ ${TMP} -lt ${YTMP} ];
> then
> COLOR=green
>
> MSG="The Temperature is currently ${TMP}F, which does not exceed the
> Warning level (${YTMP}F)"
>
> fi
> if [ ${TMP} -gt ${YTMP} ] && [ ${TMP} -lt ${RTMP} ];
> then
> COLOR=yellow
>
> MSG="The Temperature is currently ${TMP}F, which is exceeds the Warning
> level (${YTMP}F)"
>
> fi
> if [ ${TMP} -gt ${RTMP} ];
> then
> COLOR=red
>
> MSG="The Temperature is currently ${TMP}F, which exceeds the Panic level
> (${RTMP}F!)"
>
> fi
> rm ${STMP}
>
> $BB $BBDISP "status $MACHINE.temp $COLOR `date`
> $MSG
> temp : $TMP
> "
>
> LM_sensors is installed and working well.
>
> Can somebody give me an advise, please?
>
> Maik
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHDFr5r4r+EhimPOURAp6DAKDVMyyX1Nbf47G6+PkVI+lJV54JowCcDVdP
> XtuvQadl6KSlyMkqNeZ/91s=
> =1FAV
> -----END PGP SIGNATURE-----
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer