This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hardware Temperature monitoring with lm_sensors

There's a long-standing feature request for this; Please vote for it at 
Reporting: Enhanced Hardware Information
if you'd like to see this better-integrated.

Meanwhile, if you want to be able to get your system temperatures, fan speeds, and voltages from the console or SSH, you can do the following (as root):

First download a backup config file; there's a small chance of a lockup during the sensor detection phase.
Also keep in mind that this may void your support contract, however the changes can easily be reverted (see below).


# detect motherboard hardware; this will create new config at /etc/sysconfig/lm_sensors
sensors-detect

#start the service
/etc/init.d/lm_sensors restart

#read the sensors (don't need to be root for this part)
sensors
#or
/etc/init.d/lm_sensors status



If all of the above works, you can enable the service to start at boot time with:
cd /etc/init.d/rc3.d/
ln -s ../lm_sensors S99sensors

If it doesn't work, delete
/etc/sysconfig/lm_sensors
to remove the configuration file.


This works for me on my MSI Atom system running Astaro v9.000.
I've also tried it on my HP running v8.3 but got an ACPI warning, and on a friend's PC running v8, but was not successful at finding the hardware.
Not all hardware will be detected.

sensord is not present in v9, so there is (still) no practical way to do automated hardware monitoring.


Barry



This thread was automatically locked due to age.
  • you've had my three votes on this for a while..[:)]

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Hi Barry,
    one vote was all I have and it is yours.

    I have implemented your suggestions with good results. I will most definitely have to get a larger heatsink.
    Current CPU temperature is 44c, high 82, critical 102c, room temperature 19c.


    Ian
  • 44C is fine.

    I think the other numbers are what the motheboard/CPU specify as thresholds, not the recent temps. I could be wrong though.

    Barry
  • Hi Barry,
    44c is way to hot for a cpu not doing much. Maybe a small case fan might help, not easy on this box because the board power connector is the way. My 6 core AMD idles at 3c above ambient.

    I will be investigating better heatsinks and moving it to bigger case.

    Ian.

    A new case with more open space around the CPU fan. A more efficient powersupply.
    Last test the CPU was sitting at 37-38c.
  • Ahoy,

    Just a quick one to share a few things.

    1) The v9.1 release is great! I've added my +3 to the feature request though. With lm_sensors added and running it really shouldn't be hard to get the WebUI updated to include hardware stats.

    2) In the meantime I've been keeping an eye on my kit with a lefttronic dashboard and a cron job with great success. Example below for anyone else wanting to replicate it.

    /root/temp2lt.sh

    #!/usr/bin/env bash
    # Cronjob for pushing UTM v9.1 health stats to leftronic
    kahn@the-mesh.org

    APIKEY="Your Lefttronic access key"
    CHIPSET=`sensors | grep temp1: | cut -d " " -f 9 | sed 's/°C//' | sed 's/+//'`
    curl -i -X POST -k -d '{"accessKey": $APIKEY, "streamName": "chipsetTemp, "point": '$CHIPSET'}' https://www.leftronic.com/customSend/
    CPU=`sensors | grep 'Core 0:' | cut -d " " -f 9 | sed 's/°C//' | sed 's/+//'`
    curl -i -X POST -k -d '{"accessKey": $APIKEY, "streamName": "chipsetTemp", "point": '$CPU'}' https://www.leftronic.com/customSend/
    LA1=`uptime | cut -d ',' -f 3 | cut -d ' ' -f 5`
    curl -i -X POST -k -d '{"accessKey": $APIKEY, "streamName": "loadAvg1", "point": '$LA1'}' https://www.leftronic.com/customSend/
    LA5=`uptime | cut -d ',' -f 4 | sed 's/ //'`
    curl -i -X POST -k -d '{"accessKey": $APIKEY, "streamName": "loadAvg5", "point": '$LA5'}' https://www.leftronic.com/customSend/
    LA15=`uptime | cut -d ',' -f 5 | sed 's/ //'`
    curl -i -X POST -k -d '{"accessKey": $APIKEY, "streamName": "loadAvg15", "point": '$LA15'}' https://www.leftronic.com/customSend/


    Then as root run crontab -e

    */1 * * * * sh /root/temp2lt.sh >/dev/null 2>&1


    Comments and critisims are welcome. As a final note this is built with my home box in mind (a modified VIA NFR7500). Any production use will no doubt void your warranty.

    Cheers,

    Kahn
  • Hey, how do you run `sensors-detect`?

    I'm on 9.403-4 and i don't have it, so `sensors` only shows virtual temp.


    Never mind, it's `sudo /usr/sbin/sensors-detect`. And "yes" to everything worked.