Express5800/110Ge上のCentOSでlm_sensorsを使う


Express5800/110Geでlm_sensorsを使用してみました。

この機種はIT8718Fを使用していますが、lm_sensorsのサイトで確認すると2.6.19以降で対応しているようです。
CentOS 5は2.6.18なので対応していないと思いきや、調べてみると2.6.18-170.el5以降で対応しているとのことでした。

さっそく、lm_sensorsをインストールしました。

[root@minori ~]# yum install lm_sensors
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: www.ftp.ne.jp
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package lm_sensors.i386 0:2.10.7-9.el5 set to be updated
--> Processing Dependency: libsysfs.so.2 for package: lm_sensors
---> Package lm_sensors.x86_64 0:2.10.7-9.el5 set to be updated
--> Running transaction check
---> Package libsysfs.i386 0:2.0.0-6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================
 Package                              Arch                             Version                                   Repository                      Size
======================================================================================================================================================
Installing:
 lm_sensors                           i386                             2.10.7-9.el5                              base                           511 k
 lm_sensors                           x86_64                           2.10.7-9.el5                              base                           525 k
Installing for dependencies:
 libsysfs                             i386                             2.0.0-6                                   base                            46 k

Transaction Summary
======================================================================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): libsysfs-2.0.0-6.i386.rpm                                                                                               |  46 kB     00:00     
(2/3): lm_sensors-2.10.7-9.el5.i386.rpm                                                                                        | 511 kB     00:00     
(3/3): lm_sensors-2.10.7-9.el5.x86_64.rpm                                                                                      | 525 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                 1.4 MB/s | 1.1 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : lm_sensors                                                                                                                     1/3 
  Installing     : libsysfs                                                                                                                       2/3 
  Installing     : lm_sensors                                                                                                                     3/3 

Installed:
  lm_sensors.i386 0:2.10.7-9.el5                                           lm_sensors.x86_64 0:2.10.7-9.el5                                          

Dependency Installed:
  libsysfs.i386 0:2.0.0-6                                                                                                                             

Complete!

カーネルのバージョンをみると2.6.18-170以前だと動作しないので、動作しなかったらunameを確認してみると良いと思います。

[root@minori ~]# sensors-detect 
lm_sensors を停止中:                                       [  OK  ]
# 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): 
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel ICH9

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): 
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 1c20 (i2c-0)
Do you want to scan it? (YES/no/selectively): 
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): 
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): 
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Trying family `ITE'...                                      Yes
Found `ITE IT8718F Super IO Sensors'                        Success!
    (address 0x290, driver `it87')
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): 
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 `it87' (should be inserted):
  Detects correctly:
  * ISA bus, address 0x290
    Chip `ITE IT8718F Super IO Sensors' (confidence: 9)

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): 
lm_sensors を起動中:                                       [  OK  ]
[root@minori ~]# sensors
it8718-isa-0290
Adapter: ISA adapter
in0:       +1.12 V  (min =  +0.77 V, max =  +1.54 V)   
in1:       +1.79 V  (min =  +1.62 V, max =  +1.98 V)   
in2:       +3.33 V  (min =  +2.96 V, max =  +3.63 V)   
in3:       +3.06 V  (min =  +2.54 V, max =  +3.46 V)   
in4:       +3.01 V  (min =  +2.70 V, max =  +3.30 V)   
in5:       +0.00 V  (min =  +0.02 V, max =  +4.06 V)   
in6:       +1.17 V  (min =  +0.02 V, max =  +4.06 V)   
in7:       +2.58 V  (min =  +2.24 V, max =  +2.75 V)   
in8:       +3.33 V
fan1:     2556 RPM  (min = 1500 RPM)                   
fan2:     1997 RPM  (min = 1149 RPM)                   
fan3:     1901 RPM  (min = 1149 RPM)                   
fan4:     1864 RPM  (min = 1149 RPM)                   
fan5:        0 RPM  (min =   10 RPM)                   ALARM
temp1:       +48°C  (low  =    +5°C, high =   +62°C)   sensor = thermistor   
temp2:       +42°C  (low  =    +5°C, high =   +62°C)   sensor = thermistor   
temp3:       +40°C  (low  =    +5°C, high =   +90°C)   sensor = diode   
vid:      +0.000 V

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +39°C  (high =   +85°C)                   

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +39°C  (high =   +85°C)                   

ひとまず値は取得できたので、これをなんらかの形でグラフにしたいなぁ。
こういうときはやっぱりKaresansui 2.xに付属のcollectdを拝借するのが一番良いだろうか…。

参考サイト

あわせて読みたい