CentOS安装并查看lm_sensors CPU温度监控

摘要:
CentOS安装和查看lm_传感器首先检查是否安装rpm软件包:[root@localhosthome]#rpm qa|grepsensorslm_sensors-libs-3.1.1-17.el6.x86_64lm_sensors-3.3.1.1-17.el.6.x86_64如果有安装包,请卸载不匹配的rpm e-nodepsXXXXX如果没有rpm包,请转到相关网站并将其与相应的

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)

  

免责声明:文章转载自《CentOS安装并查看lm_sensors CPU温度监控》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇android学习和广告平台赚钱算法系列2《RSA》下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

常用CentOS 6/7 扩展源

1、系统自带 baseextrasupdates 2、epel yum install epel-release https://fedoraproject.org/wiki/EPEL 3、el(用于升级内核) rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http:...

Centos 7 搭建蓝鲸V4.1.16社区版

第一次搭建蓝鲸平台,参考了蓝鲸社区的官方搭建文档。 友情链接:蓝鲸智云社区版V4.1.16用户手册 在本地用VMware模拟了三台主机, 准备至少3台 CentOS 7 以上操作系统的机器 最低配置:2核4G 建议配置: 4核12G 以上 192.168.1.12(主控机) 192.168.1.18 192.168.1.19 获取安装包 蓝鲸社区版包含...

如何在CentOS 6.4上安装并使用OpenVZ?

http://os.51cto.com/art/201304/387720.htm 安装OpenVZ 要完成OpenVZ的安装工作,我们需要先把OpenVZ库添加到yum当中: cd /etc/yum.repos.d wget http://download.openvz.org/openvz.repo rpm --import http://downlo...

CentOS 7 搭建Jenkins+JDK+Git+Maven+Gradle持续集成系统

一、Jenkinx(持续集成工具) 官网:https://jenkins.io/ Jenkins是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能。 Jenkins功能包括: 1、持续的软件版本发布/测试项目。 2、监控外部调用执行的工作。 Jenkins启动: 首先...

Qt5.3.2_CentOS6.4_基本编程环境__20160306【勿删,繁琐】

20160306 全程没有f/q ZC:使用的虚拟机环境是:博客园VMwareSkill 的 “CentOS6.4_x86_120g__20160306.rar” 1、 执行命令“gcc -v”,显示: “ [root@centos ~]# gcc -vbash: gcc: command not found[root@centos ~]# ” 说明没有...

服务器架设:CentOS搭建LNMP详细教程(转)

目前流行的配置是Linux+Nginx+PHP+MySQL,简称LNMP。下面简单介绍一下配置方法。 一、安装CentOS和LNMP包。 安装CentOS 5.5,系统安装完后自带APACHE,先运行yum remove httpd,删除Apache! 用SSH登录LINUX,安装LNMP。 1、下载LNMP一键安装包: wget -c http://so...