CentOS安裝並查看lm_sensors CPU溫度監控


CentOS安裝並查看lm_sensors 

首先查看是否安裝rpm包:

[root@localhost home]# rpm -qa|grep sensors
lm_sensors-libs-3.1.1-17.el6.x86_64
lm_sensors-3.1.1-17.el6.x86_64

  

如果有安裝包,卸載不配套的

rpm -e --nodeps XXXXX.rpm

  

如果沒有rpm包去相關網址下載,並連同對應的lib rpm包一起下載;

安裝rpm包:

[root@localhost home]# rpm -ivh lm_sensors-libs-3.1.1-17.el6.x86_64.rpm
warning: lm_sensors-libs-3.1.1-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:lm_sensors-libs-3.1.1-17.el6     ################################# [100%]
[root@localhost home]# rpm -ivh lm_sensors-3.1.1-17.el6.x86_64.rpm
warning: lm_sensors-3.1.1-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:lm_sensors-3.1.1-17.el6          ################################# [100%]

查看rpm包文件:

[root@localhost home]# rpm -qpl lm_sensors-3.1.1-17.el6.x86_64.rpm
warning: lm_sensors-3.1.1-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
/etc/rc.d/init.d/lm_sensors
/etc/sensors3.conf
/etc/sysconfig/lm_sensors
/usr/bin/sensors
/usr/bin/sensors-conf-convert
/usr/bin/sysconfig-lm_sensors-convert
/usr/sbin/fancontrol
/usr/sbin/isadump
/usr/sbin/isaset
/usr/sbin/pwmconfig
/usr/sbin/sensors-detect
/usr/share/doc/lm_sensors-3.1.1
/usr/share/doc/lm_sensors-3.1.1/CHANGES
/usr/share/doc/lm_sensors-3.1.1/CONTRIBUTORS
/usr/share/doc/lm_sensors-3.1.1/COPYING
/usr/share/doc/lm_sensors-3.1.1/README
/usr/share/doc/lm_sensors-3.1.1/README.initscripts
/usr/share/doc/lm_sensors-3.1.1/README.redhat
/usr/share/doc/lm_sensors-3.1.1/doc
/usr/share/doc/lm_sensors-3.1.1/doc/chips
/usr/share/doc/lm_sensors-3.1.1/doc/chips/MODPARMS
/usr/share/doc/lm_sensors-3.1.1/doc/chips/SUMMARY
/usr/share/doc/lm_sensors-3.1.1/doc/developers
/usr/share/doc/lm_sensors-3.1.1/doc/developers/applications
/usr/share/doc/lm_sensors-3.1.1/doc/developers/lm_sensors.lsm
/usr/share/doc/lm_sensors-3.1.1/doc/developers/makefiles
/usr/share/doc/lm_sensors-3.1.1/doc/developers/release_checklist
/usr/share/doc/lm_sensors-3.1.1/doc/donations
/usr/share/doc/lm_sensors-3.1.1/doc/fan-divisors
/usr/share/doc/lm_sensors-3.1.1/doc/fancontrol.txt
/usr/share/doc/lm_sensors-3.1.1/doc/libsensors-API.txt
/usr/share/doc/lm_sensors-3.1.1/doc/progs
/usr/share/doc/lm_sensors-3.1.1/doc/svn
/usr/share/doc/lm_sensors-3.1.1/doc/temperature-sensors
/usr/share/doc/lm_sensors-3.1.1/doc/vid
/usr/share/doc/lm_sensors-3.1.1/fancontrol.init
/usr/share/man/man1/sensors.1.gz
/usr/share/man/man5/sensors.conf.5.gz
/usr/share/man/man5/sensors3.conf.5.gz
/usr/share/man/man8/fancontrol.8.gz
/usr/share/man/man8/isadump.8.gz
/usr/share/man/man8/isaset.8.gz
/usr/share/man/man8/pwmconfig.8.gz
/usr/share/man/man8/sensors-detect.8.gz

運行sensors-detect:

[root@localhost home]# cd /usr/sbin/
[root@localhost sbin]# sensors-detect
# sensors-detect revision 1.1
# System: Default string Default string

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 11h thermal sensors...                           No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal and voltage sensors...                       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'...                   Yes
Found unknown chip with ID 0xfefe
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   Yes
Found unknown chip with ID 0xfefe

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
Found unknown SMBus adapter 8086:a1a3 at 0000:00:1f.4.
Sorry, no supported PCI bus adapters found.

Next adapter: SMBus I801 adapter at 0780 (i2c-0)
Do you want to scan it? (YES/no/selectively): yes

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 (via systemctl):                       [  OK  ]

  全選yes,直到最后看到

Starting lm_sensors (via systemctl):                       [  OK  ]
說明啟動成功!

查看cpu溫度:
[root@localhost sbin]# sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +41.0°C  (high = +85.0°C, crit = +95.0°C)
Core 0:        +40.0°C  (high = +85.0°C, crit = +95.0°C)
Core 1:        +37.0°C  (high = +85.0°C, crit = +95.0°C)
Core 2:        +38.0°C  (high = +85.0°C, crit = +95.0°C)
Core 3:        +37.0°C  (high = +85.0°C, crit = +95.0°C)
Core 4:        +37.0°C  (high = +85.0°C, crit = +95.0°C)
Core 5:        +38.0°C  (high = +85.0°C, crit = +95.0°C)
Core 6:        +39.0°C  (high = +85.0°C, crit = +95.0°C)
Core 7:        +38.0°C  (high = +85.0°C, crit = +95.0°C)

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM