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.
Parents
  • 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
Reply
  • 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
Children
No Data