How to monitor the CPU temperature in your Linux box

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)

    yum install lm_sensors

  2. Run the sensors detector

    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—-

  3. Start the lm_sensors service

    service lm_sensors start

  4. Now to get the sensor data

    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.

Leave a Reply

23958 pages viewed, 149 today
11642 visits, 103 today
FireStats icon Powered by FireStats