cPanel Config

Welcome to cPanelConfig the fastest growing cPanel configuration and troubleshooting guide on the internet. Please take the time and register. We would love to have your contribution to this completely free cPanel resource. We are updating this daily so be sure to visit us on a regular basis.

How to monitor the CPU temperature in your Linux box

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Posted by yolau

As the summer is starting to show its heat waives (at least here) I thought that an article on how to monitor your server’s CPU temperature is appropriate. In a modern Data Center heat should not be a problem but you never know…

When you should start worrying about your CPU temperature?
When the first signs are random reboots or hangs of your server. If you see something like that it is a good idea to check your server’s temperature.

How to monitor the temperature?
Linux provides a nice and useful app to monitor your CPU temperature called lm_sensors.

Requirements
lm_sensors requires a kernel 2.6.17 or higher. If you are running an older kernel you will have to upgrade before you install lm_sensors

Installation is simple:

  1. Install the package via your package manager (for exemple yum)
  2. yum install lm_sensors

  3. Run the sensors detector
  4. sensors-detect

    Fallow the on screen instructions.
    This will instruct you to add to /etc/modprobe.conf something like :

    #—-cut here—-
    # I2C module options
    alias char-major-89 i2c-dev
    #—-cut here—-

  5. Start the lm_sensors service
  6. service lm_sensors start

  7. Now to get the sensor data
  8. sensors

    This will list all available sensors and provide the data from them.

Please note that if you want to use lm_sensors in a core2duo system you will need kernel 2.6.21 or newer.

Hope it helps!
If you have any questions just let me know.

Share this:
  • Digg
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • Netvouz
  • description
  • ThisNext
  • MisterWong
  • Wists
  • De.lirio.us
  • Furl
  • MyShare
  • Smarking
  • Technorati
  • YahooMyWeb

If you enjoyed this post, make sure you subscribe to my RSS feed!

3 Responses to “How to monitor the CPU temperature in your Linux box”

  1. [...] How to monitor the CPU temperature in your Linux box As the summer is starting to show its heat waives (at least here) I thought that an article on how to monitor your server�s CPU temperature is appropriate. In a modern Data Center heat should not be a problem but you never know� …cPanelConfig - cPanel server configuration guide - http://www.cpanelconfig.com/ [...]

  2. [...] How to monitor the CPU temperature in your Linux box As the summer is starting to show its heat waives (at least here) I thought that an article on how to monitor your server�s CPU temperature is appropriate. In a modern Data Center heat should not be a problem but you never know� …cPanelConfig - cPanel server configuration guide - http://www.cpanelconfig.com/ [...]

  3. On Debian, use that command to install the package:
    apt-get install lm-sensors

Leave a Reply