Press "Enter" to skip to content

Month: September 2014

CentOS系统下CPU温度监控

CentOS下监控CPU的温度。本文基于CentOS 6.5 64bit。

lm_sensors通过调用/lib/modules/2.6.32-358.xxx.x86_64/kernel/drivers/hwmon/coretemp.ko模块来读取温度值。

yum install lm_sensors
sensors-detect           #一路YES即可

modprobe i2c-dev
mobprobe coretemp        #必要

cat /etc/sysconfig/lm_sensors    #查看温度监控模块
sensors                  #查看CPU温度
watch sensors            #每隔一秒显示CPU温度
watch -n 1 -d sensors    #每隔一秒显示CPU温度

以下是一些无用内容,请自动忽略。
谷歌查到的一些其它监控CPU温度的内容:

/sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp
cat /proc/acpi/thermal_zone/THM0/temperature

On my 2010 Debian Lenny system, the path is:
proc/acpi/thermal_zone/THRM/temperature

Leave a Comment