LM_Sensors on Cent OS 5.4 How To Get And Install The Coretemp Module

简介:

centos 5.4 X64的平台上,想通过sensors 监控CPU的温度,在安装配置的过程中走了很多弯路,在查找coretemp module时走了很多弯路,因为centos 5.4 kernel 是 2.6.18的,并不包含coretemp 模块,这里记录一下安装的过程以及将coretemp模块放在网站上,供大家下载

第一步|:安装lm_sensors

安装完成后运行:

sensors-detect

再安装过程中,遇到每一个选项都是回答:YES,之后会提示

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): YES

启动 lm_sensorsNo sensors found!

Make sure you loaded all the kernel drivers you need.

Try sensors-detect to find out which these are.

[失败]

遇到这个问题的时候,搜了很多的帖子,均是建议下载最新的sensors-detect,于是乎

wget http://dl.lm-sensors.org/lm-sensors/files/sensors-detect

Chmod 755 sensors-detect

执行./sensors-detect

一路YES下去,提示error

Note: there is no driver for IPMI BMC KCS yet.

Check http://www.lm-sensors.org/wiki/Devices for updates.

Warning: the required module coretemp is not currently installed

on your system. Check http://www.lm-sensors.org/wiki/Devices for

driver availability.

No modules to load, skipping modules configuration.

好吧,这里是看到了coretemp的模块问题,google 搜索coretemp的模块

Coretemp 模块下载

http://down.51cto.com/data/849707

这个是一个zip包,里面包含了I686X64的版本RPM安装文件

查看:uname -r

安装:rpm -ivh kmod-coretemp-1.1-2.el5.x86_64.rpm

Preparing...                ########################################### [100%]

  1:kmod-coretemp          ########################################### [100%]

命令:modinfo coretemp 查看

filename:       /lib/modules/2.6.18-164.el5/weak-updates/coretemp/coretemp.ko

license:        GPL

description:    Intel Core temperature monitor

author:         Rudolf Marek <r.marek@assembler.cz>

srcversion:     6E167863013C68E51A188A6

depends:        hwmon

vermagic:       2.6.18-92.el5 SMP mod_unload gcc-4.1

命令:modprobe coretemp 加载

命令:]# lsmod  | grep coretemp 查看是否正确加载

coretemp               42496  0

hwmon                  36553  1 coretemp

当以上几步确定无误后,再次执行./sensors-detect

一路回YES

Some south bridges, CPUs or memory controllers may also contain

embedded sensors. Do you want to scan for them? (YES/no): YES

Silicon Integrated Systems SIS5595...                       No

VIA VT82C686 Integrated Sensors...                          No

VIA VT8231 Integrated Sensors...                            No

AMD K8 thermal sensors...                                   No

AMD K10 thermal sensors...                                  No

Intel Core family thermal sensor...                         Success!

   (driver `coretemp')

Intel AMB FB-DIMM thermal sensor...                         No

Now follows a summary of the probes I have just done.

Just press ENTER to continue:

Driver `coretemp' (should be inserted):

 Detects correctly:

 * Chip `Intel Core family thermal sensor' (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): YES

启动 lm_sensors[确定]

到这一步时,我们的安装已经完成,下面就可以使用命令:sensors 查看当前CPU的温度信息

sensors

coretemp-isa-0000

Adapter: ISA adapter

Core 0:      +44°C  (high =  +100°C)                  

coretemp-isa-0001

Adapter: ISA adapter

Core 1:      +40°C  (high =  +100°C)                  

coretemp-isa-0002

Adapter: ISA adapter

Core 2:      +44°C  (high =  +100°C)                  

coretemp-isa-0003

Adapter: ISA adapter

Core 3:      +43°C  (high =  +100°C)                  

coretemp-isa-0004

Adapter: ISA adapter

Core 4:      +43°C  (high =  +100°C)                  

coretemp-isa-0005

Adapter: ISA adapter

Core 5:      +45°C  (high =  +100°C)                  

coretemp-isa-0006

Adapter: ISA adapter

Core 6:      +43°C  (high =  +100°C)                  

coretemp-isa-0007

Adapter: ISA adapter

Core 7:      +45°C  (high =  +100°C)          



      本文转自天真花语  51CTO博客,原文链接: http://blog.51cto.com/caibird/1228914 ,如需转载请自行联系原作者



相关文章
|
网络协议 Ubuntu Linux
CentOS 8及以上版本配置IP的方法,你 get 了吗
接上篇文章讲了 Ubuntu 18及以上版本的配置方法,本文再来讲讲 CentOS 8 及以上版本配置 IP 的方法。
387 0
CentOS 8及以上版本配置IP的方法,你 get 了吗
|
存储 应用服务中间件 Linux
FastDFS(1):Centos7 安装FastDFS+nginx module
本文原文连接: http://blog.csdn.net/freewebsys/article/details/45150941 转载请注明出处! 1,关于FastDFS 摘自:http://www.oschina.net/p/fastdfs FastDFS是一个开源的分布式文件系统,她对文件进行管理,功能包括:文件存储、文件同步、文件访问(文件上传、文件下载)等,解决
4924 0
|
1月前
|
Linux 网络安全 数据安全/隐私保护
如何在 VM 虚拟机中安装 CentOS Linux 9 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 CentOS Linux 9 操作系统保姆级教程(附链接)
161 0
|
1月前
|
存储 JavaScript Linux
Linux环境下安装nmp(Centos环境)保姆级教学 一步到位
Linux环境下安装nmp(Centos环境)保姆级教学 一步到位
|
1天前
|
Linux
centos 6.5安装yum
centos 6.5安装yum
10 0
|
1天前
|
运维 网络协议 Linux
【运维系列】Centos7安装并配置PXE服务
PXE是Intel开发的预启动执行环境,允许工作站通过网络从远程服务器启动操作系统。它依赖DHCP分配IP,DNS服务分配主机名,TFTP提供引导程序,HTTP/FTP/NFS提供安装源。要部署PXE服务器,需关闭selinux和防火墙,安装dhcpd、httpd、tftp、xinetd及相关服务,配置引导文件和Centos7安装源。最后,通过syslinux安装引导文件,并创建pxelinux.cfg/default配置文件来定义启动参数。
5 0
|
1天前
|
运维 网络协议 Linux
【运维系列】Centos7安装并配置postfix服务
安装CentOS7的Postfix和Dovecot,配置Postfix的`main.cf`文件,包括修改完全域名、允许所有IP、启用邮箱等。然后,配置Dovecot的多个配置文件以启用auth服务和调整相关设置。重启Postfix和Dovecot,设置开机自启,并关闭防火墙进行测试。最后,创建邮箱账户并在Windows邮箱客户端中添加账户设置。
9 0
|
1天前
|
Linux 网络安全
Centos6.5安装并配置NFS服务
该内容描述了在Linux系统中设置NFS服务的步骤。首先挂载yum源,然后安装NFS服务,并编辑配置文件。接着,重启rpcbind和NFS服务,可能需要重复此过程以解决初始可能出现的问题。此外,关闭防火墙策略,并再次重启服务。最终,根目录被共享,特定IP网段被允许访问。
7 0