Linux监控CPU温度Linux认证考试
文章作者 100test 发表时间 2009:11:20 16:35:48
来源 100Test.Com百考试题网
安装测试系统:
硬件:普通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/0selectively): 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