lm_sensors (Linux-monitoring sensors), is a free open source tool for Linux that provides tools and drivers for monitoring temperatures, voltage, humidity, and fans. It can also detect chassis intrusions. Device temperature control is very important. Most of the time, your desktop system or laptop computer gets too hot because different parts and components of the these device are closely coupled to one another.
Your system may face an overheating issue. This system overheating issue occurs when the system’s temperature exceeds a specific limit.
In this article we will install it and monitor CPU temperature using different commands.
Install EPEL Release
dnf install -y epel-release
Install Linux Monitoring Sensors
Install lm sensor on RHEL 8 and CentOS 8
dnf install -y lm_sensors
Now, we need to make some configuration using below command after lm sensor installation. So if you want to go with default configuration simply hit enter key step by step.
You can see complete configuration in following image .
Finally issue following command to see CPU temperature.
In a Linux system, the sensor instruction is executed to monitor, the current measurements of all sensor chips along with the temperature of the CPU.
So, you can see in above image the command “sensors” is showing number of CPU cores its current temperature. But in brackets its is also showing high and critical temperatures in degree centigrade.
See temperature on Runtime
Check temperature in Fahrenheit
Then, what if you wanna see it in Fahrenheit, if you want to do so simply run following command