Linux · 2010-10-19

Linux硬件监控工具sensors

Linux查看硬件温度,硬件监控工具.
主要用他来监控cpu的温度与风扇的转速,工具名称为sensors
以下为安装步骤

安装sensors
yum install -y lm_sensors.i386

运行sensors侦测并向导
sensors-detect

# sensors-detect revision 5291 (2008-06-23 23:40:46 -0700)

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.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no): 

#探测PCI SMBus(系统管理总线)和I2C(串行总线) , 选择YES

Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel ICH10

We will now try to load each adapter module in turn.
Module `i2c-i801' already loaded.
If you have undetectable or unsupported I2C/SMBus adapters, you can have
them scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev' to be loaded.
Do you want to load `i2c-dev' now? (YES/no): 

#加载i2c-dev,选择YES

Module loaded successfully.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: SMBus I801 adapter at 1180 (i2c-0)
Do you want to scan it? (YES/no/selectively): yes

#扫描SMBus,选择yes

Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No
Client found at address 0x52
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No

Some chips are also 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

#是否扫描ISA I/O端口,选择yes

Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM78-J' 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

Some Super I/O chips may also contain 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

#是否扫描I/O传感器,选择yes

Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       Yes
Found unknown chip with ID 0xb073
    (logical device B has address 0x290, could be sensors)
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Trying family `ITE'...                                      No

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): 

#检测结果,决定是否覆盖/etc/sysconfig/lm_sensors,选择yes

运行sensors进行检测

w83627dhg-isa-06e0
Adapter: ISA adapter
VCore:     +0.89 V  (min =  +0.00 V, max =  +1.74 V) 
in1:      +10.14 V  (min =  +8.98 V, max =  +0.48 V) ALARM
AVCC:      +3.06 V  (min =  +1.02 V, max =  +0.19 V) ALARM
3VCC:      +3.06 V  (min =  +0.11 V, max =  +0.00 V) ALARM
in4:       +0.97 V  (min =  +1.37 V, max =  +0.02 V) ALARM
in5:       +1.36 V  (min =  +0.59 V, max =  +0.01 V) ALARM
in6:       +1.02 V  (min =  +3.46 V, max =  +4.71 V) ALARM
VSB:       +3.06 V  (min =  +2.61 V, max =  +0.06 V) ALARM
VBAT:      +2.99 V  (min =  +2.06 V, max =  +2.82 V) ALARM
Case Fan:    0 RPM  (min =  527 RPM, div = 32) ALARM
CPU Fan:  1110 RPM  (min = 1259 RPM, div = 16) ALARM
Aux Fan:     0 RPM  (min =  540 RPM, div = 32) ALARM
fan4:        0 RPM  (min = 2343 RPM, div = 16) ALARM
Sys Temp:    +54°C  (high =   +70°C, hyst =    +4°C)  [CPU diode ]
CPU Temp:  +62.0°C  (high = +80.0°C, hyst = +75.0°C)  [CPU diode ]
AUX Temp: -128.0°C  (high = +80.0°C, hyst = +75.0°C)  [CPU diode ]
vid:      +2.050 V

不超频的话,主要是监控CPU的温度跟风扇的转速,用脚本跑一下就很简单了.