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…
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:
- Install the package via your package manager (for exemple yum)
- Run the sensors detector
- Start the lm_sensors service
- Now to get the sensor data
yum install lm_sensors
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—-
service lm_sensors start
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.
If you enjoyed this post, make sure you subscribe to my RSS feed!
- June 24th


(1 votes, average: 4 out of 5)














[...] 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/ [...]
[...] 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/ [...]
On Debian, use that command to install the package:
apt-get install lm-sensors