快速业务通道

Linux 监控CPU 温度

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-26

  安装测试系统:

  硬件:普通PC机,

  软件:redhat linux as 4 2.6 .9 , 安装系统自带的lm_sensors-2.8.7-2.i386

  你也可以从[url]http://www.edgedesign.us/about/lm_sensors[/url]下载

  这个软件可以在linux下收集到系统温度.然后我用cacti显示.

  是系统自带的.我在安装系统的时候就已经安装好的.如果你找不到的话.可以在系统盘上找,然后rpm安装.这个我就不说了.

  下来看配置:

  运行: /sbin/depmod –a

  vi /etc/ld.so.conf

  加入这一行: /usr/local/lib

  运行: ldconfig

  运行:sensors-detect 扫瞄你的主机使用那些芯片组

  1: We can start with probing for (PCI) I2C or SMBus adapters.

  You do not need any special privileges for this.

  Do you want to probe now? (YES/no): YES

  2:Next adapter: SMBus I801 adapter at 0500 (Algorithm unavailable)

  Do you want to scan it? (YES/no/selectively): YES

  3:Do you want to scan the ISA bus? (YES/no): YES

  4:Do you want to scan for Super I/O sensors? (YES/no): YES

  5:Do you want to scan for secondary Super I/O sensors? (YES/no): YES

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

  Just press ENTER to continue: 回车

  7:I will now generate the commands needed to load the I2C modules.

  Sometimes, a chip is available both through the ISA bus and an I2C bus.

  ISA bus access is faster, but you need to load an additional driver module

  for it. If you have the choice, do you want to use the ISA bus or the

  I2C/SMBus (ISA/smbus)? ISA

  显示:

  To make the sensors modules behave correctly, add these lines to

  /etc/modules.conf:

  #----cut here----

  # I2C module options

  alias char-major-89 i2c-dev

  #----cut here----

  To load everything that is needed, add this to some /etc/rc* file:

  #----cut here----

  # I2C adapter drivers

  modprobe i2c-isa

  # I2C chip drivers

  modprobe w83627hf

  # sleep 2 # optional

  /usr/bin/sensors -s # recommended 拥有帝国一切,皆有可能。欢迎访问phome.net

  #----cut here----

  WARNING! If you have some things built into your kernel, the list above

  will contain too many modules. Skip the appropriate ones! You really should

  try these commands right now to make sure everything is working properly.

  Monitoring programs won''t work until it''s done.

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

  Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors

  for initialization at boot time.

  完成.

  cat /etc/sysconfig/lm_sensors

  显示:

  MODULE_0=i2c-isa

  MODULE_1=w83627hf

  启动

  [root@linux etc]# /etc/rc.d/init.d/lm_sensors start

  Starting lm_sensors: [ OK ]

  测试:运行 sensors

  显示:

  w83627thf-isa-0290

  Adapter: ISA adapter

  VCore: 1.53 V (min = 1.93 V, max = 1.93 V)

   12V: 5.59 V (min = 10.82 V, max = 13.19 V)

   3.3V: 3.26 V (min = 3.14 V, max = 3.47 V)

   5V: 5.

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号