To check CPU temperature on Linux, run sensors. If the command is missing on Ubuntu or Debian, install lm-sensors first. On Windows Server, start with your server’s hardware management interface if it offers temperature readings.
Check CPU temperature on Linux
If sensors is already installed, run it before installing anything. On Ubuntu or Debian, use these commands if you need the package:
sudo apt update
sudo apt install lm-sensors
sensors
Install the sensor utility on Fedora or Arch Linux
Run the command for your distribution, then run sensors:
- Fedora:
sudo dnf install lm_sensors - Arch Linux:
sudo pacman -S lm_sensors - RHEL or a compatible distribution: Check whether
lm_sensorsis available from the enabled repositories for your release before installing it.
Identify the CPU reading
Look for the CPU sensor group in the output. For example, Intel systems using the coretemp driver can show package and individual core readings. Other drivers can use different labels. Compare the same sensor at idle and under your normal workload, and check the limits for your specific processor or server model.
To refresh the readings every two seconds, run:
watch -n 2 sensors
Press Ctrl+C to stop. If you have a Linux desktop, Psensor is an optional graphical monitoring tool where your distribution packages it.
Check Linux hardware sensor files directly
First identify the sensor driver by reading the names under /sys/class/hwmon:
grep -H . /sys/class/hwmon/hwmon*/name
Replace hwmon2 with the directory for your CPU sensor. In that directory, read the matching label if the driver exposes one, followed by its input value:
cat /sys/class/hwmon/hwmon2/temp1_label
cat /sys/class/hwmon/hwmon2/temp1_input
For an Intel coretemp temperature input, 42000 means 42 °C because the value is reported in millidegrees Celsius. Check the driver and sensor label before comparing readings. See the Linux kernel’s coretemp documentation.
What if Linux reports no sensors?
- VPS or virtual machine: The guest may have no access to physical CPU sensors. Ask your provider about host health if you suspect a hardware issue.
- Bare-metal server: Check the manufacturer’s management interface or monitoring agent. Confirm that the right sensor driver is available for your hardware.
- Sensor discovery: Review the hardware documentation before running
sensors-detect. The utility probes hardware, so use it during an approved maintenance window if it is needed on a production server.
See the sensors manual and the sensors-detect manual.
Check CPU temperature on Windows Server
- Check the server management interface first. On physical servers, use the vendor’s hardware health console if available. For example, Dell iDRAC reports supported temperature sensors without requiring a Windows restart. Read the sensor label so you can distinguish CPU temperature from inlet, exhaust, or memory temperature.
- Use an approved monitoring utility if needed. HWMonitor or Core Temp may report CPU readings when the hardware and operating system are supported. Confirm compatibility before installing either on a server.
- Use BIOS or UEFI during planned maintenance. If the system has a hardware health screen, it can show a temperature reading after a restart. This gives a snapshot outside the running workload.
What to record when investigating overheating
Record the processor model, sensor name, highest reading, workload, and time of the event. Compare that evidence with the manufacturer’s limits and server health logs. For hosted systems, provide those details to support so they can check the underlying hardware if needed.
Explore Systron’s dedicated servers or VPS hosting options.