Install
Install
yum install lm-sensors ## 'yum' above for CentOS, 'apt-get' if you are using Ubuntu sensors-detect sensors ## if sensors-detect does not work, and above lm-sensors command does says 'nothing to do', try below instead yum install lm_sensors.x86_64
Example
[root@rdlab ~]# sensors coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +42.0°C (high = +80.0°C, crit = +90.0°C) Core 0: +33.0°C (high = +80.0°C, crit = +90.0°C) Core 1: +35.0°C (high = +80.0°C, crit = +90.0°C) Core 2: +36.0°C (high = +80.0°C, crit = +90.0°C) Core 3: +30.0°C (high = +80.0°C, crit = +90.0°C) Core 4: +33.0°C (high = +80.0°C, crit = +90.0°C) Core 5: +32.0°C (high = +80.0°C, crit = +90.0°C)
Monitoring 'sensors'
Example
watch -n 1 -d sensors ## continuously prints and highlights changes
k10temp-pci-00c3 (on Ubuntu 20.04)
This sensor is provided by the k10temp kernel module which handles the AMD CPU.
Example of customer output
iwlwifi_1-virtual-0 Adapter: Virtual device temp1: +67.0°C enp68s0-pci-4400 Adapter: PCI adapter PHY Temperature: +84.0°C k10temp-pci-00c3 Adapter: PCI adapter Tdie: +93.0°C (high = +70.0°C) Tctl: +93.0°C ## ^ this is pretty hot
Known-oddities with lm_sensors
It doesn't work well with CentOS 8.x. It only does one sensor, but it is not clear on what that sensor tracks.