Re: Temperature sensing and logging (was: What IS reasonable disk drive temperature?)

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

 



On Mon, Jun 13, 2005 at 11:42:05AM -0700, Kenneth Porter wrote:
> --On Sunday, June 12, 2005 6:10 PM +0200 Alexander Dalloz 
> <ad+lists@xxxxxxxxx> wrote:
> 
> >The CPU temperature comes from sensors out of the lm_sensors package
> >(Core). You first have to setup sensors by running sensors-detect. Out
> >of my head (no guarantee), your motherboard should have a sensors chip
> >which is supported by lm_sensors.
> >The hard drive temperature can be read by hddtemp (Extras). At least if
> >your drive has a sensor and provides the data through S.M.A.R.T.
> 
> Slick. I know RRD (round-robin database) could be used to log that over 
> time. Has anyone set up scripts to do that? And a nice web page to display 
> the result?

The most simple thing to is use this script (/usr/local/bin/hddtemps.mrtg):

    #!/bin/sh

    #in
    /usr/local/bin/hddtemp -n /dev/hde
    #out
    /usr/local/bin/hddtemp -n /dev/hdg
    #uptime
    uptime
    #hostname
    echo `hostname`: hde hdg temps

with the following mrtg.conf entry

    Target[hddtemp]: `/usr/local/bin/hddtemps.mrtg`
    Title[hddtemp]: System Harddisk Temperature
    PageTop[hddtemp]: <H1> System Harddisk temperatures </H1>
    MaxBytes[hddtemp]: 100
    Options[hddtemp]: nopercent, gauge
    Ylegend[hddtemp]: Graden Celsius
    ShortLegend[hddtemp]: Graden
    Legend1[hddtemp]: Temperatuur hde
    Legend2[hddtemp]: Temperatuur hdg
    Legend3[hddtemp]: leg3
    Legend4[hddtemp]: leg4
    LegendI[hddtemp]: hde:
    LegendO[hddtemp]: hdg:

I just use plain mrtg (no rrd) so the graphs are in the mrtg html tree...

-Marcel
-- 
     ======--------         Marcel J.E. Mol                MESA Consulting B.V.
    =======---------        ph. +31-(0)6-54724868          P.O. Box 112
    =======---------        marcel@xxxxxxx                 2630 AC  Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
 They couldn't think of a number,           Linux user 1148  --  counter.li.org
    so they gave me a name!  -- Rupert Hine  --  www.ruperthine.com


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux