CentOS 安装lm_sensors 温度监控

CentOS 安装lm_sensors 温度监控
首先查看是否安装,系统默认安装了   
#rpm -qa|grep sensors
lm_sensors-devel-3.1.1-17.el6.x86_64
lm_sensors-libs-3.1.1-17.el6.x86_64
lm_sensors-3.1.1-17.el6.x86_64

下载最新的sensors-detect
# cd /usr/sbin/
# rm -rf sensors-detect
# wget http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
--2013-10-16 10:54:28--  http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
正在解析主机 dl.lm-sensors.org... 160.45.254.26
正在连接 dl.lm-sensors.org|160.45.254.26|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:202216 (197K) [text/plain]
正在保存至: “sensors-detect”

100%[======================================>] 202,216      163K/s   in 1.2s

2013-10-16 10:54:30 (163 KB/s) - 已保存 “sensors-detect” [202216/202216])
给予权限:
# chmod 755 sensors-detect
安装coretemp:
#wget http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-1.1-2.el5.x86_64.rpm
#rpm -ivh kmod-coretemp-1.1-2.el5.x86_64.rpm
   Preparing...                ########################################### [100%]
   1:kmod-coretemp          ########################################### [100%]
需要安装dkms,安装:
#yum install dkms
安装好后,
# modinfo coretemp
# modprobe coretemp
# lsmod|grep coretemp
coretemp                7381  0
最后运行sensors
#sensors-detect

# sensors-detect revision 6203 (2013-10-09 17:58:33 +0200)
# System: VMware, Inc. VMware Virtual Platform [None]
# Board: Intel Corporation 440BX Desktop Reference Platform

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
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power 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/ITE'...               Yes
Found unknown chip with ID 0x0f00
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               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
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

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-piix4' for device 0000:00:07.3: Intel 82371AB PIIX4 ACPI
Module i2c-dev loaded successfully.


Now follows a summary of the probes I have just done.
Just press ENTER to continue:

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

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): yes
Starting lm_sensors: loading module coretemp               [确定]
全部选yes然后最后看到loading module coretemp               [确定]
及说明启动成功!
#sensors
查看温度监控

你可能感兴趣的:(CentOS 安装lm_sensors 温度监控)