How to get CPU temperature on CentOS 7

With the help of Linux hardware monitoring tool lm_sensor, we can get some hardware info from a running system. lm_sensor provides essential command line utilities to monitor hardware status of Linux.

To get current CPU temperature on CentOS, we need to install and config lm_sensor as follows,

Install lm_sensors with following yum command:

$ sudo yum install -y lm_sensors

Config lm_sensors with command sensors-detect

$ sudo sensors-detect

sensors-detect is an interactive program that will walk you through the process of scanning the system for various hardware monitoring chips, or sensors, supported by libsensors(3), or more generally by the lm_sensors tool suite.

How to retrieve CPU temperature on CentOS?

Type this command:

[admon@centos ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:      +43.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:             +43.0°C  (high = +100.0°C, crit = +100.0°C)
Share Button

2 thoughts on “How to get CPU temperature on CentOS 7

Leave a comment

Your email address will not be published. Required fields are marked *