Thursday, July 10, 2008

How to Check System Temperature Under Linux

One of my Linux web servers (running Fedora) starting coming up with these messages:

Message from syslogd:

kernel: CPU0: Temperature above threshold

CPU0: Running in modulated clock mode

I couldn't tell how slowly the CPU was running, but it was dog slow, and the server load was outrageously high.

I was curious as to what temperature the CPU was running at, so I took a look at the pseudo file:

/proc/acpi/thermal_zone/THRM/temperature

using cat and the ACPI sensor showed a whopping 83 degrees Celsius. I called the hosting company and they found a faulty CPU fan and replaced it.

Just thought I share this in case you didn't know how to check the temperature of Linux boxes and want to find out.

0 comments: