您的位置:首页 > 运维架构 > Linux

CentOS 安装温度监控 lm_sensors

2010-08-04 14:46 691 查看
#yum install lm_sensors

#sensors-dectect

发现启动失败,主要是因为需要依赖内核模块 coretemp

#modprobe coretemp

#uname -a

Linux 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

找到内核版本号,原来只有 2.6.22 才内置了该模块。

Google找到一个可用模块

wget http://www.cs.vsu.ru/~raskhozhev/files/dkms-coretemp-1.00-1.noarch.rpm

下载后安装即可。

[root@server neil]# modinfo coretemp
bash: modinfo: command not found
[root@server neil]# /sbin/modinfo coretemp
filename: /lib/modules/2.6.18-194.3.1.el5/extra/coretemp.ko
license: GPL
description: Intel Core temperature monitor
author: Rudolf Marek <r.marek@assembler.cz>
srcversion: ACC9B44AC9ED676294B7A11
depends: hwmon
vermagic: 2.6.18-194.3.1.el5 SMP mod_unload gcc-4.1

[root@server neil]# /usr/sbin/sensors-detect

按照提示确定即可。

[root@server neil]# sensors
it8718-isa-0290
Adapter: ISA adapter
in0: +1.10 V (min = +0.00 V, max = +4.08 V)
in1: +1.97 V (min = +0.00 V, max = +4.08 V)
in2: +3.36 V (min = +0.00 V, max = +4.08 V)
in3: +2.99 V (min = +0.00 V, max = +4.08 V)
in4: +0.29 V (min = +0.00 V, max = +4.08 V)
in5: +0.00 V (min = +0.00 V, max = +4.08 V) ALARM
in6: +1.23 V (min = +0.00 V, max = +4.08 V)
in7: +3.04 V (min = +0.00 V, max = +4.08 V)
in8: +3.30 V
fan1: 1328 RPM (min = 0 RPM)
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
temp1: +30¡ãC (low = +127¡ãC, high = +127¡ãC) sensor = thermistor
temp2: +19¡ãC (low = +127¡ãC, high = +127¡ãC) sensor = diode
temp3: -2¡ãC (low = +127¡ãC, high = +127¡ãC) sensor = thermistor
vid: +2.050 V

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +44¡ãC (high = +100¡ãC)

coretemp-isa-0001
Adapter: ISA adapter
Core 1: +41¡ãC (high = +100¡ãC)

coretemp-isa-0002
Adapter: ISA adapter
Core 2: +40¡ãC (high = +100¡ãC)

coretemp-isa-0003
Adapter: ISA adapter
Core 3: +43¡ãC (high = +100¡ãC)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: