首页 > 系统相关 >Linux系统之温度监控工具——lm_sensors的安装和基本使用

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

时间:2024-09-26 14:22:49浏览次数:10  
标签:... 00 No lm 64 Linux sensors

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

一、lm_sensors介绍
lm_sensors,是一款基于linux系统的硬件监控的软件。可以监控主板,CPU的工作电压,温度等数据。
rpm包下载地址 获取码2344: lm_sensors-3.4.0-6.20160601gitf9185e5.el7.x86_64.rpm
二、检测安装环境
1.检查yum仓库

[root@server ~]# yum repolist all |grep enable
base/7/x86_64               CentOS-7 - Base - mirrors.aliyun.com enabled: 10,072
epel/x86_64                 Extra Packages for Enterprise Linux  enabled: 13,758
extras/7/x86_64             CentOS-7 - Extras - mirrors.aliyun.c enabled:    512
updates/7/x86_64            CentOS-7 - Updates - mirrors.aliyun. enabled:  4,088

2.检查系统版本

[root@server ]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

三、安装lm_sensors

[root@server ~]# yum install lm_sensors -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
base                                                                                                                                                    | 3.6 kB  00:00:00     
epel                                                                                                                                                    | 4.7 kB  00:00:00     
extras                                                                                                                                                  | 2.9 kB  00:00:00     
updates                                                                                                                                                 | 2.9 kB  00:00:00     
(1/3): epel/x86_64/updateinfo                                                                                                                           | 1.1 MB  00:00:00     
(2/3): epel/x86_64/primary_db                                                                                                                           | 7.0 MB  00:00:04     
(3/3): updates/7/x86_64/primary_db                                                                                                                      |  16 MB  00:00:10     
Resolving Dependencies
--> Running transaction check
---> Package lm_sensors.x86_64 0:3.4.0-8.20160601gitf9185e5.el7 will be installed
--> Processing Dependency: lm_sensors-libs = 3.4.0-8.20160601gitf9185e5.el7 for package: lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64
--> Running transaction check
---> Package lm_sensors-libs.x86_64 0:3.4.0-6.20160601gitf9185e5.el7 will be updated
---> Package lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================
 Package                                    Arch                              Version                                                    Repository                       Size
===============================================================================================================================================================================
Installing:
 lm_sensors                                 x86_64                            3.4.0-8.20160601gitf9185e5.el7                             base                            141 k
Updating for dependencies:
 lm_sensors-libs                            x86_64                            3.4.0-8.20160601gitf9185e5.el7                             base                             42 k

Transaction Summary
===============================================================================================================================================================================
Install  1 Package
Upgrade             ( 1 Dependent package)

Total download size: 182 k
Downloading packages:
No Presto metadata available for base
(1/2): lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_64.rpm                                                                                        |  42 kB  00:00:00     
(2/2): lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64.rpm                                                                                             | 141 kB  00:00:00     
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                          734 kB/s | 182 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                                                       1/3 
  Installing : lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                                                            2/3 
  Cleanup    : lm_sensors-libs-3.4.0-6.20160601gitf9185e5.el7.x86_64                                                                                                       3/3 
  Verifying  : lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                                                            1/3 
  Verifying  : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_64                                                                                                       2/3 
  Verifying  : lm_sensors-libs-3.4.0-6.20160601gitf9185e5.el7.x86_64                                                                                                       3/3 

Installed:
  lm_sensors.x86_64 0:3.4.0-8.20160601gitf9185e5.el7                                                                                                                           

Dependency Updated:
  lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.el7                                                                                                                      

Complete!

四、侦测硬件

[root@server ]# sensors-detect 
# sensors-detect revision 3.4.0-8 (2016-06-01)
# System: onebot Mini [Default string]
# Board: Default string Default string
# Kernel: 3.10.0-957.el7.x86_64 x86_64
# Processor: Intel(R) Celeron(R) N5095 @ 2.00GHz (6/156/0)

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...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 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'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      Yes
Found unknown chip with ID 0x8613
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
Found unknown SMBus adapter 8086:4da3 at 0000:00:1f.4.
Sorry, no supported PCI bus adapters found.
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
Unloading i2c-dev... OK

五、查看温度

[root@server ]# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +119.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +53.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:         +48.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:         +48.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:         +48.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:         +48.0°C  (high = +105.0°C, crit = +105.0°C)

iwlwifi-virtual-0
Adapter: Virtual device
temp1:            N/A  

六、动态监控温度

[root@server ]# watch sensors

标签:...,00,No,lm,64,Linux,sensors
From: https://www.cnblogs.com/suixinnan/p/18433373

相关文章

  • Linux PAM简解
     懒得写,看下面的文档参考文档https://syxdevcode.github.io/2020/08/04/Linux%E4%B8%ADPAM%E6%A8%A1%E5%9D%97/ 有个插图不错  有个插图不错 写的很详细http://www.jinbuguo.com/linux/pam.html  写的也不错,特别是注意事项章节https://www.docs4dev.com/docs/zh/linux-pa......
  • Linux:root 用户密码丢失解决方案
    1.进入开机菜单选择界面,按上下箭头键取消自动计时进入 2.按"e" 进入编辑模式3.在编辑模式下 ,找到"zh_CN.UTF-8"行数据,并在"UTF-8"后面加 上"init=/bin/sh"初始化配置●完整配置"zh_CN.UTF-8init=/bin/sh"4.按"Ctrl+x"组合键执行编辑好的配置文件,并进入到单用户模式......
  • 国产化生态再升级!鼎捷新一代PLM与人大金仓完成产品兼容性互认证
    兼容性认证是确保不同企业的产品在特定环境下协同工作的关键步骤,对于保障系统的稳定性、可靠性至关重要。对用户而言,兼容性认证不但拥有更加流畅、安全的使用体验,更是代表着服务的连续性和高效性。此外,作为推动国产软硬件生态成熟和自主可控能力的关键环节,企业间的产品兼容互认......
  • OSU:LLM的网络代理存在隐私泄露风险
    ......
  • 吉利:通过怀疑建模减轻LLM的幻觉
    ......
  • Linux服务器运维管理面板1Panel快速安装及安全配置
    1Panel是一个现代化、开源的Linux服务器运维管理面板,旨在帮助运维人员简化服务器管理任务。它提供了直观的界面和强大的功能,使用户可以通过图形化操作界面对服务器进行管理,减少了对命令行的依赖。1Panel支持多种操作系统,适用于Linux服务器,提供了如网站管理、数据库管......
  • Linux 五种IO模型
    1概念说明在进行解释之前,首先要说明几个概念:用户空间和内核空间:现在操作系统都是采用虚拟存储器,那么对32位操作系统而言,它的寻址空间(虚拟存储空间)为4G(2的32次方)。操作系统的核心是内核,独立于普通的应用程序,可以访问受保护的内存空间,也有访问底层硬件设备的所有权限。为了保证用......
  • Linux CentOS 7.9 系统 免费安装 MySQL 8.0.31:简易指南
    一:MySQL介绍在当今数字化时代,MySQL已成为最流行的开源数据库之一,无论是用于开发网站应用程序、数据存储或其他多用途的数据库需求,MySQL以其强大的功能和灵活性受到了广泛的青睐。本文将带领你通过简单的步骤,免费安装MySQL8.0.31,助你轻松搭建高效的数据库环境!二:MySQL......
  • Linux单机最大并发到底是多少?
    Linux单机最大并发到底是多少?-知乎(zhihu.com)所谓C10K就是单机1w并发问题,其中IO复用epoll/kqueue/iocp等技术对于C10k问题的解决起到了非常重要的作用。所谓C10W就是单机1000w并发问题,未来待解决==========================================五元组数一个五元组可以唯一标......
  • 【Linux篇】常用命令及操作技巧(进阶篇 - 上)
    ......