Centos5.3安装lm_sensors 温度监控

http://wenku.baidu.com/view/dd4ebfd4360cba1aa811da44.html 

 

Centos5.3

安装

lm_sensors 

温度监控

 

1.

下载

lm_sensors 

查找

Linux

上有没有安装

sensors 

[root@servert02haitao ~]# rpm -qa |grep sensors 

 (

默认已经安装)

 

 

没有的话安装

 

 

[root@servert02haitao ~]#  yum install lm_sensors 

 

 

[root@servert02haitao ~]# rpm -qa |grep sensors 

lm_sensors-2.10.7-4.el5 

lm_sensors-2.10.7-4.el5 

 

 

2.

下载新的

sensors-detect 

[root@servert02haitao ~]# cd /usr/sbin/ 

 

[root@servert02haitao sbin]# rm -rf sensors-detect 

 

[root@servert02haitaosbin]#wgethttp://dl.lm-sensors.org/lm-sensors/files/senso

rs-detect 

--19:40:22--  http://dl.lm-sensors.org/lm-sensors/files/sensors-detect 

正在解析主机

 dl.lm-sensors.org... 160.45.254.26 

Connecting to dl.lm-sensors.org|160.45.254.26|:80... 

已连接。

 

已发出

 HTTP 

请求,正在等待回应

... 200 OK 

长度:

181020 (177K) [text/plain] 

Saving to: `sensors-detect' 

 

100%[==========================================================================

============>] 181,020     4.82K/s   in 26s     

 

19:40:51 (6.69 KB/s) - `sensors-detect' saved [181020/181020] 

 

[root@ localhost sbin]# chmod 755 sensors-detect 

 

 

3.

下载适合的

coretemp 

[root@servert02haitao sbin]#uname -a 

Linux servert02haitao 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 

x86_64 x86_64 GNU/Linux 

下载安装

.x86_64

内核的

kmod-coretemp 

 

[root@servert02haitao 

sbin]#wget 

http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-1.1-2.el5.x86_64.rpm  

--19:28:38--  

http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-1.1-2.el5.x86_64.rpm 

正在解析主机

 www.pperry.f2s.com... 94.136.40.100 

Connecting to www.pperry.f2s.com|94.136.40.100|:80... 

已连接。

 

已发出

 HTTP 

请求,正在等待回应

... 200 OK 

长度:

46586 (45K) [application/x-rpm] 

Saving to: `kmod-coretemp-1.1-2.el5.x86_64.rpm' 

 

100%[==========================================================================

============>] 46,586      14.5K/s   in 3.1s    

 

19:28:42 (14.5 KB/s) - `kmod-coretemp-1.1-2.el5.x86_64.rpm' saved [46586/46586] 

 

 

 

[root@servert02haitao sbin]# rpm -ivh kmod-coretemp-1.1-2.el5.x86_64.rpm  

Preparing...                ########################################### [100%] 

   1:kmod-coretemp          ########################################### [100%] 

 

 

4.

加载

coretemp 

[root@servert02haitao sbin]# modinfo coretemp 

filename:       /lib/modules/2.6.18-128.el5/weak-updates/coretemp/coretemp.ko 

license:        GPL 

description:    Intel Core temperature monitor 

author:         Rudolf Marek <r.marek@assembler.cz> 

srcversion:     6E167863013C68E51A188A6 

depends:        hwmon 

vermagic:       2.6.18-92.el5 SMP mod_unload gcc-4.1 

 

 

[root@servert02haitao sbin]# modprobe coretemp 

 

[root@servert02haitao sbin]# lsmod|grep coretemp 

coretemp               42496  0  

hwmon                  36553  1 coretemp 

 

 

5.

运行

sensors 

 

[root@servert02haitao sbin]# sensors-detect  

# sensors-detect revision 5905 (2011-01-19 10:56:53 +0100) 

# System: System manufacturer System Product Name 

# Board: ASUSTeK Computer INC. Z8NA-D6(C) 

 

This program will help you determine which kernel modules you need 

to load to use lm_sensors most effectively. It is generally safe 

and recommended to accept the default answers to all questions, 

unless you know what you're doing. 

 

Some south bridges, CPUs or memory controllers contain embedded sensors. 

Do you want to scan for them? This is totally safe. (YES/no): yes 

Silicon Integrated Systems SIS5595...                       No 

VIA VT82C686 Integrated Sensors...                          No 

VIA VT8231 Integrated Sensors...                            No 

AMD K8 thermal sensors...                                   No 

AMD Family 10h thermal sensors...                           No 

AMD Family 11h thermal sensors...                           No 

Intel digital thermal sensor...                             Success! 

    (driver `coretemp') 

Intel AMB FB-DIMM thermal sensor...                         No 

VIA C7 thermal sensor...                                    No 

VIA Nano thermal sensor...                                  No 

 

Some Super I/O chips contain embedded sensors. We have to write to 

standard I/O ports to probe them. This is usually safe. 

Do you want to scan for Super I/O sensors? (YES/no): yes 

Probing for Super-I/O at 0x2e/0x2f 

Trying family `National Semiconductor'...                   No 

Trying family `SMSC'...                                     No 

Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes 

Found `Winbond W83667HG Super IO Sensors'                   Success! 

    (address 0x290, driver `w83627ehf') 

Probing for Super-I/O at 0x4e/0x4f 

Trying family `National Semiconductor'...                   No 

Trying family `SMSC'...                                     No 

Trying family `VIA/Winbond/Nuvoton/Fintek'...               No 

Trying family `ITE'...                                      No 

 

Some systems (mainly servers) implement IPMI, a set of common interfaces 

through which system health data may be retrieved, amongst other things. 

We first try to get the information from SMBIOS. If we don't find it 

there, we have to read from arbitrary I/O ports to probe for such 

interfaces. This is normally safe. Do you want to scan for IPMI 

interfaces? (YES/no): yes 

Found `IPMI BMC KCS'...                                     Success! 

    (confidence 8, driver `ipmisensors') 

 

Some hardware monitoring chips are accessible through the ISA I/O ports. 

We have to write to arbitrary I/O ports to probe them. This is usually 

safe though. Yes, you do have ISA I/O ports even if you do not have any 

ISA slots! Do you want to scan the ISA I/O ports? (yes/NO): yes 

Probing for `National Semiconductor LM78' at 0x290...       No 

Probing for `National Semiconductor LM79' at 0x290...       No 

Probing for `Winbond W83781D' at 0x290...                   No 

Probing for `Winbond W83782D' at 0x290...                   No 

 

Lastly, we can probe the I2C/SMBus adapters for connected hardware 

monitoring devices. This is the most risky part, and while it works 

reasonably well on most systems, it has been reported to cause trouble 

on some systems. 

Do you want to probe the I2C/SMBus adapters now? (YES/no): yes 

Using driver `i2c-i801' for device 0000:00:1f.3: Intel ICH10 

 

Next adapter: SMBus I801 adapter at 0400 (i2c-0) 

Do you want to scan it? (YES/no/selectively): yes 

Client found at address 0x2f 

Probing for `National Semiconductor LM78'...                No 

Probing for `National Semiconductor LM79'...                No 

Probing for `National Semiconductor LM80'...                No 

Probing for `Analog Devices ADT7470'...                     No 

Probing for `Winbond W83781D'...                            No 

Probing for `Winbond W83782D'...                            No 

Probing for `Winbond W83791D'...                            No 

Probing for `Winbond W83792D'...                            No 

Probing for `Winbond W83793R/G'...                          No 

Probing for `Nuvoton W83795G/ADG'...                        Success! 

    (confidence 8, driver `w83795') 

Probing for `Winbond W83627HF'...                           No 

Probing for `Winbond W83627EHF'...                          No 

Probing for `Winbond W83627DHG/W83667HG/W83677HG'...        No 

Probing for `Asus AS99127F (rev.1)'...                      No 

Probing for `Asus AS99127F (rev.2)'...                      No 

Probing for `Asus ASB100 Bach'...                           No 

Probing for `Winbond W83L786NR/NG/R/G'...                   No 

Probing for `Analog Devices ADM9240'...                     No 

Probing for `Dallas Semiconductor DS1780'...                No 

Probing for `National Semiconductor LM81'...                No 

Probing for `Analog Devices ADM1029'...                     No 

Probing for `ITE IT8712F'...                                No 

Probing for `Fintek custom power control IC'...             No 

Probing for `Winbond W83791SD'...                           No 

 

Now follows a summary of the probes I have just done. 

Just press ENTER to continue:  

 

Driver `w83627ehf': 

  * ISA bus, address 0x290 

    Chip `Winbond W83667HG Super IO Sensors' (confidence: 9) 

 

Driver `coretemp': 

  * Chip `Intel digital thermal sensor' (confidence: 9) 

 

Driver `ipmisensors': 

  * ISA bus 

    Chip `IPMI BMC KCS' (confidence: 8) 

 

Driver `w83795': 

  * Bus `SMBus I801 adapter at 0400' 

    Busdriver `i2c_i801', I2C address 0x2f 

    Chip `Nuvoton W83795G/ADG' (confidence: 8) 

 

Warning: the required module ipmisensors is not currently installed 

on your system. If it is built into the kernel then it's OK. 

Otherwise, check http://www.lm-sensors.org/wiki/Devices for 

driver availability. 

 

Warning: the required module w83795 is not currently installed 

on your system. If it is built into the kernel then it's OK. 

Otherwise, check http://www.lm-sensors.org/wiki/Devices for 

driver availability. 

 

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): yes 

启动

 lm_sensors

[

确定

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值