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 linux
下載最新的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」 git
100%[======================================>] 202,216 163K/s in 1.2s shell
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
less
# 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 查看溫度監控