- E-mail:
- MSN:
- 业务咨询:QQ: 937224879
-
更多联系方式...>
在 Debian 中使用 lm-sensors 检测 CPU/主板 温度
由于我维护的服务器IDC机房空调制冷效果不好的,所以我总是有些担心温度太高把它烧掉。在网上找了找发现"lm-senwors"不光可以检测到温度信息,连电压、风扇转速也可以检测到。只不过还要看它是否支持主板上的传感器。不管怎么样,先装上试试看!
首先安装"lm-sensors":
# aptitude install lm-sensors
运行以下命令侦测传感器:
# sensors-detect
通常都回答 yes 即可,注意最后一项:
To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
it87
#----cut here----
Do you want to add these lines automatically? (yes/NO)
这段是说找到相应的传感器"it87",并问是否将这个传感器的驱动模块放到"/etc/modules",让它自动加载。这个当然也是选"yes"了。
因为当前系统中还没加载这个模块,所以我们还要手动加载一下:
# modprobe it87
然后运行“sensors”就会出现 CPU 温度和电压之类的信息了。如我的显示为:
acpitz-virtual-0
Adapter: Virtual device
temp1: +30.0°C (crit = +110.0°C)
it8718-isa-0a10
Adapter: ISA adapter
in0: +2.14 V (min = +0.00 V, max = +4.08 V)
in1: +2.14 V (min = +0.00 V, max = +4.08 V)
in2: +2.16 V (min = +3.95 V, max = +4.08 V) ALARM
in3: +3.01 V (min = +0.00 V, max = +4.08 V)
in4: +2.16 V (min = +4.06 V, max = +4.08 V) ALARM
in5: +0.06 V (min = +0.00 V, max = +4.08 V)
in6: +0.10 V (min = +0.00 V, max = +4.08 V)
in7: +2.91 V (min = +0.00 V, max = +4.08 V)
in8: +3.31 V
fan1: 0 RPM (min = 10 RPM) ALARM
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
temp1: -78.0°C (low = +127.0°C, high = +127.0°C) sensor = thermal diode
temp2: +34.0°C (low = +127.0°C, high = +127.0°C) sensor = transistor
temp3: +27.0°C (low = +127.0°C, high = +65.0°C) sensor = thermal diode
cpu0_vid: +2.050 V
本文章参照了http://jk.scanmon.com/wp/debian-lm-senwors.html 但遇到了有些服务器内核检测不到测温点,检测不到温度的问题。
此篇文章收录于鹏鹏工作室 http://www.scanmon.com 转载时请以超链接形式标明文章原始出处,谢谢
网址: http://www.scanmon.com/s/name-debian-lm-senwors-0-0-0.html
