brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: run sensors-detect once and sensors shows your server's temperatures and fan speeds

Hardware
~/tips/tip-monitoring-sensors-detect

sudo sensors-detect

Detects the hardware sensors on a Linux machine and then prints temperatures, voltages and fans.

A server in a cupboard can get warm without you noticing. On Linux, the lm-sensors package reads the temperature, fan and voltage sensors on the board.

sudo apt install lm-sensors
sudo sensors-detect
sensors

The lm-sensors project describes sensors-detect as a tool that detects the installed hardware and recommends which kernel modules to load. The README says to run it as root.

After that, sensors is the console tool that reports the sensor readings: temperatures, fan speeds and voltages, depending on what the chips on your board expose.

Next to each reading the chip often reports its own high and critical limits, which gives you a feel for how much room there is. Combine it with watch to see the numbers move during a heavy job, such as a parity check or a long transcode:

watch -n 2 sensors

Caveats. Not every board exposes everything; on some machines you only get the CPU. The labels come from the chip driver and can be cryptic, like temp1. And inside a container or a VM you usually see nothing at all, because the sensors belong to the host. Run it on the host itself, and if the numbers look wrong, compare them with what the BIOS setup screen shows.

Further reading: lm-sensors on GitHub

Going deeper: Keep a domain pointed at your home with Cloudflare DDNS on Unraid

More Hardware tips disable_poe_fan=1 sudo dmidecode -s bios-version sudo lshw -short rfkill list udevadm monitor All Hardware tips (8) All topics

Link