无论是家用电脑还是服务器一直不变的需要解决的问题就是降温,而在平时服务器运行过程中如何知道服务器的内部降温系统是否健康,温度是否正常就可以通过lm_sensors工具进行监测,lm_sensors是一款linux的硬件监控软件,它可以通过打印温度传感器的信息,帮助我们监控主板,CPU的工作电压,风扇转速、温度等数据。这些数据我们通产在主板的BIOS也可以看到。当我们可以在机器运行的时候通过lm_sensors随时来监测CPU的温度变化,可以预防和保护因为CPU过热而烧掉,至于lm_sensors的安装也比较简单,在这里就做简单,在配置好相应的源后可以直接安装,在这里简单描述一下lm_sensors的安装配置。

[root@lsy script 20:58:23]# rpm -qa lm_sensors
lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64
[root@lsy script 20:58:32]#
[root@lsy script 20:58:33]#
[root@lsy script 20:58:33]#
[root@lsy script 20:58:33]# sensors-detect
# sensors-detect revision 3.4.0-8 (2016-06-01)
# System: VMware, Inc. VMware Virtual Platform [None]
# Board: Intel Corporation 440BX Desktop Reference Platform
# Kernel: 3.10.0-957.el7.x86_64 x86_64
# Processor: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz (6/158/9)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 16h thermal sensors...                           No
AMD Family 17h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             No
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  NoSome 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 0x0200
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'...                                      NoSome 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...                     NoSome 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...                   NoLastly, 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 ACPISorry, no sensors were detected.
Either your system has no sensors, or they are not supported, or
they are connected to an I2C or SMBus adapter that is not
supported. If you find out what chips are on your board, check
https://hwmon.wiki.kernel.org/device_support_status for driver status.
[root@lsy script 20:58:51]#

可能是因为我的实验环境是虚拟机的缘故,导致没有找到传感器。

抱歉,未检测到传感器。您的系统没有传感器,或者不支持传感器,或者它们连接到I2C或SMBus适配器支持。如果你发现你的板上有什么芯片,检查一下驱动程序状态的https://hwmon.wiki.kernel.org/device_support_status。

查看服务状态,我的应该是有问题的。

[root@lsy zabbix_agentd.d 22:26:29]# systemctl  status  lm_sensors
● lm_sensors.service - Initialize hardware monitoring sensorsLoaded: loaded (/usr/lib/systemd/system/lm_sensors.service; enabled; vendor preset: enabled)Active: failed (Result: exit-code) since Mon 2020-04-13 04:31:01 EDT; 17h agoMain PID: 11737 (code=exited, status=1/FAILURE)Apr 13 04:31:01 lsy systemd[1]: Starting Initialize hardware monitoring sensors...
Apr 13 04:31:01 lsy modprobe[11736]: No sensors with loadable kernel modules configured.
Apr 13 04:31:01 lsy modprobe[11736]: Please, run 'sensors-detect' as root in order ...rs.
Apr 13 04:31:01 lsy sensors[11737]: No sensors found!
Apr 13 04:31:01 lsy sensors[11737]: Make sure you loaded all the kernel drivers you need.
Apr 13 04:31:01 lsy sensors[11737]: Try sensors-detect to find out which these are.
Apr 13 04:31:01 lsy systemd[1]: lm_sensors.service: main process exited, code=exite...URE
Apr 13 04:31:01 lsy systemd[1]: Failed to start Initialize hardware monitoring sensors.
Apr 13 04:31:01 lsy systemd[1]: Unit lm_sensors.service entered failed state.
Apr 13 04:31:01 lsy systemd[1]: lm_sensors.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

下午再研究

linux下CPU主板监控工具lm_sensors相关推荐

  1. 在Linux下查看主板温度失败

    想在Linux下查看主板和CPU的温度,于是上网找了下如何查看 [root@localhost ~]# yum install lm_sensors Loaded plugins: fastestmi ...

  2. Linux系统之温度监控工具——lm_sensors的安装和基本使用

    Linux系统之温度监控工具--lm_sensors的安装和基本使用 一.lm_sensors介绍 二.检测安装环境 1.检查yum仓库 2.检查系统版本 三.安装lm_sensors 四.侦测硬件 ...

  3. 用Prime95来做linux下CPU压力测试

    Prime95是用来做linux下CPU压力测试的,由GIMPS (Great Internet Mersenne Prime Search)所提供,主要是透过运算找出梅森质数,质数(Prime nu ...

  4. Linux查主板槽位使用情况,linux下查看主板内存槽与内存信息

    1.查看内存槽数.那个槽位插了内存,大小是多少 dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range 2. ...

  5. LINUX下CPU Load Average的一点研究

    背景: 公司的某个系统工作在基于Linux的Cent OS下,一个host下同时连接了许多client, 最近某台Host总是显示CPU Load Average过高,我们单纯的以为是CPU的占用过高 ...

  6. linux下cpu参数的参看和说明

    物理CPU 实际Server中插槽上的CPU个数  物理cpu数量,可以数不重复的 physical id 有几个 命令: cat /proc/cpuinfo | grep "physica ...

  7. 浅谈Linux下CPU利用率和CPU负载及其代码实现原理

    编者注: 本来想写个简单的程序测试CPU利用率,后来代码实现后与top(ps)命令测试的结果做对比,疑惑了,疑惑后有了此文-- 第一节   祸起 本来就是想通过写个小程序测试CPU利用率从而可以检验其 ...

  8. linux下cpu查看命令

    1.Linux查看当前操作系统版本信息 cat /proc/version 2.Linux查看版本当前操作系统内核信息 uname -a 3.linux查看版本当前操作系统发行信息 cat /etc/ ...

  9. linux下监测cpu温度,linux下CPU温度监测

    1.安装相关软件 sudo apt-get install lm-sensors sensors-applet [root@localhost ~]# sensors No sensors found ...

最新文章

  1. JVM——Java虚拟机架构
  2. WPF下可编辑Header的Tab控件实现
  3. shell 脚本不能执行多条?何解
  4. 鼠标监听类适配器改良
  5. mybatis(mapper映射文件)
  6. 数据统计 测试方法_统计测试:了解如何为数据选择最佳测试!
  7. python中List和Tuple的区别
  8. php如何给注册页面加验证码,网站注册页面如何添加验证码注册登录
  9. 一亿融资在一家芯片初创公司可以烧多久?
  10. linux安装rlwrap 解决sqlplus不能上下翻问题
  11. 三翼鸟,用两年开启下一个十年
  12. 笔记本电脑更改计算机驱动怎么进不去,笔记本电脑进入不了BIOS的原因与解决办法...
  13. 高中数学必修一函数知识点总结
  14. 磁盘分析管理软件:Disk Space Analyzer Pro mac版
  15. 编译原理知识点总结——字母表和串(附思维导图)
  16. c# skylin 创建图片标注出现png透明边缘覆盖后面元素解决办法
  17. win10共享打印机搜索不到计算机,win10为什么搜索不到共享打印机
  18. 组合保险策略及相应模拟测算工具----Discrete Hedging: Guaranteed CPPI Structures
  19. php lotus notes,Linux_Ubuntu Linux Wine上使用Lotus Notes 7,两种方法:   A、如果data - phpStudy...
  20. Jquery隐藏div 根据id

热门文章

  1. 探索性测试 VS 精益测试
  2. ld: file not found 错误解决办法
  3. yolo 学习系列(八):参考资源
  4. 中文文本相似度检测接口
  5. 2.5 TCP/IP命令(flushdns)
  6. C++命名空间:默认命名空间与匿名命名空间
  7. excel数据统计函数
  8. vmware 虚拟网络
  9. android中dp和px的关系
  10. C#【控件篇】Winform中使用MDI窗体