Page 1 of 1

CentOS: Sensors temperature

Posted: 2023 May 03, 19:28
by Mihai
To read the temperature of components that have temperature sensors, the lm_sensor package must be installed

Code: Select all

[user @ centos ~]$ sudo su -
[root @ centos ~]$ yum install lm_sensors -y
After installing the lm_sensors package, type the command to detect the sensors. All specifications are accepted. (YES to all requirements).

Code: Select all

[root @ centos ~]$ yes|sensors-detect
After accepting all the requirements, check the temperature for all sensors

Code: Select all

[root @ centos ~]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:       +66.0°C  (crit = +108.0°C)
temp2:       +54.0°C  (crit = +105.0°C)
temp3:       +41.0°C  (crit = +108.0°C)
temp4:       +48.0°C  (crit = +105.0°C)
temp5:       +25.4°C  (crit = +108.0°C)
temp6:       +45.0°C  (crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +40.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:      +43.0°C  (high = +105.0°C, crit = +105.0°C)
To monitor the temperature every two seconds, type the command

Code: Select all

[root @ centos ~]$ watch 'sensors'
Every 2.0s: sensors Thu May 14 00:21:12 2015

acpitz-virtual-0
Adapter: Virtual device
temp1:       +67.0°C  (crit = +108.0°C)
temp2:       +54.0°C  (crit = +105.0°C)
temp3:       +43.0°C  (crit = +108.0°C)
temp4:       +49.0°C  (crit = +105.0°C)
temp5:       +25.4°C  (crit = +108.0°C)
temp6:       +45.0°C  (crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +41.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:      +43.0°C  (high = +105.0°C, crit = +105.0°C)