ともやん どっと ねっと


2012年5月20日(日) 21:21 JST

ハードウエア監視

監視ソフトのインストール

yum、または、yumexでlm_sensorsをインストールする。

# yum install lm_sensors

sensors-detectコマンドでセンサーを検出

問い合わせはすべてEnterで答える。

# sensors-detect
# sensors-detect revision 4348 (2007-03-18 02:45:21 -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-amd756' for device 0000:00:07.3: AMD-8111 ACPI

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

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: NVIDIA i2c adapter 2 at 1:00.0 (i2c-3)
Do you want to scan it? (YES/no/selectively): 
Adapter cannot be probed, skipping.

Next adapter: NVIDIA i2c adapter 1 at 1:00.0 (i2c-2)
Do you want to scan it? (YES/no/selectively): 
Adapter cannot be probed, skipping.

Next adapter: NVIDIA i2c adapter 0 at 1:00.0 (i2c-1)
Do you want to scan it? (YES/no/selectively): 
Adapter cannot be probed, skipping.

Next adapter: SMBus AMD8111 adapter at 80e0 (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'...                                 Success!
    (confidence 8, driver `eeprom')
Probing for `EDID EEPROM'...                                No
Probing for `Maxim MAX6900'...                              No
Client found at address 0x51
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Success!
    (confidence 8, driver `eeprom')
Client found at address 0x52
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Success!
    (confidence 8, driver `eeprom')
Client found at address 0x53
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Success!
    (confidence 8, driver `eeprom')

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
Probing for `Silicon Integrated Systems SIS5595'...         No
Probing for `VIA VT82C686 Integrated Sensors'...            No
Probing for `VIA VT8231 Integrated Sensors'...              No
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     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 `ITE'...                                      Yes
Found unknown chip with ID 0xe919
Trying family `National Semiconductor'...                   Yes
Found `Nat. Semi. PC87366 Super IO Fan Sensors'             Success!
    (address 0x600, driver `pc87360')
Found `Nat. Semi. PC87366 Super IO Voltage Sensors'         Success!
    (address 0x620, driver `pc87360')
Found `Nat. Semi. PC87366 Super IO Thermal Sensors'         Success!
    (address 0x610, driver `pc87360')
Trying family `SMSC'...                                     Yes
Found unknown chip with ID 0xe919
Trying family `VIA/Winbond/Fintek'...                       Yes
Found unknown chip with ID 0xe919
Probing for Super-I/O at 0x4e/0x4f
Trying family `ITE'...                                      No
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No

Some CPUs or memory controllers may also contain embedded sensors.
Do you want to scan for them? (YES/no): 
AMD K8 thermal sensors...                                   Success!
    (driver `k8temp')
Intel Core family thermal sensor...                         No
Intel AMB FB-DIMM thermal sensor...                         No

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `eeprom' (should be inserted):
  Detects correctly:
  * Bus `SMBus AMD8111 adapter at 80e0'
    Busdriver `i2c-amd756', I2C address 0x50
    Chip `SPD EEPROM' (confidence: 8)
  * Bus `SMBus AMD8111 adapter at 80e0'
    Busdriver `i2c-amd756', I2C address 0x51
    Chip `SPD EEPROM' (confidence: 8)
  * Bus `SMBus AMD8111 adapter at 80e0'
    Busdriver `i2c-amd756', I2C address 0x52
    Chip `SPD EEPROM' (confidence: 8)
  * Bus `SMBus AMD8111 adapter at 80e0'
    Busdriver `i2c-amd756', I2C address 0x53
    Chip `SPD EEPROM' (confidence: 8)

  EEPROMs are *NOT* sensors! They are data storage chips commonly
  found on memory modules (SPD), in monitors (EDID), or in some
  laptops, for example.

Driver `pc87360' (should be inserted):
  Detects correctly:
  * ISA bus, address 0x600
    Chip `Nat. Semi. PC87366 Super IO Fan Sensors' (confidence: 9)
  * ISA bus, address 0x620
    Chip `Nat. Semi. PC87366 Super IO Voltage Sensors' (confidence: 9)
  * ISA bus, address 0x610
    Chip `Nat. Semi. PC87366 Super IO Thermal Sensors' (confidence: 9)

Driver `k8temp' (should be inserted):
  Detects correctly:
  * Chip `AMD K8 thermal sensors' (confidence: 9)

I will now generate the commands needed to load the required modules.
Just press ENTER to continue: 

To make the sensors modules behave correctly, add these lines to
/etc/modprobe.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-amd756
# Chip drivers
modprobe eeprom
modprobe pc87360
modprobe k8temp
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

If you have some drivers 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 the needed
modules are loaded.

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

指示にしたがって以下のファイルに設定を追加する

/etc/modprobe.conf

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

/etc/rc.local

#----cut here----
# I2C adapter drivers
modprobe i2c-amd756
# Chip drivers
modprobe eeprom
modprobe pc87360
modprobe k8temp
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

システム再起動

設定を反映するためにシステムを再起動する。

モジュールロード確認

lsmodコマンドでモジュールが読み込まれているかどうかを確認する。

# lsmod
Module                  Size  Used by
pc87360                31441  0 
eeprom                 16721  0 
i2c_amd756             16069  0 
i2c_core               32449  6 pc87360,i2c_isa,eeprom,i2c_ec,nvidia,i2c_amd756
k8temp                 14785  0

sensorsコマンドで表示

# sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:
             +47°C

k8temp-pci-00cb
Adapter: PCI adapter
Core0 Temp:
             +50°C

pc87366-isa-0600
Adapter: ISA adapter
in0:       +1.51 V  (min =  +0.00 V, max =  +2.95 V)       
in1:       +2.48 V  (min =  +0.00 V, max =  +2.95 V)       
in2:       +0.58 V  (min =  +0.00 V, max =  +2.95 V)       
in3:       +0.65 V  (min =  +0.00 V, max =  +2.95 V)       
in4:       +1.49 V  (min =  +0.00 V, max =  +2.95 V)       
in5:       +0.58 V  (min =  +0.00 V, max =  +2.95 V)       
in6:       +1.61 V  (min =  +0.00 V, max =  +2.95 V)       
Vsb:       +3.29 V  (min =  +2.99 V, max =  +3.59 V)       
Vdd:       +3.22 V  (min =  +2.99 V, max =  +3.59 V)       
Vbat:      +0.00 V  (min =  +0.00 V, max =  +0.00 V)       
AVdd:      +3.22 V  (min =  +2.99 V, max =  +3.59 V)       
fan1:     4615 RPM  (min =  235 RPM, div = 8)          
fan2:     5000 RPM  (min =  235 RPM, div = 8)          
fan3:     1463 RPM  (min =  235 RPM, div = 8)          
CPU0 Temp:   +57°C  (low  =   -55°C, high =  +127°C)  
CPU0 Crit:  +127°C
CPU1 Temp:   +60°C  (low  =   -55°C, high =  +127°C)  
CPU1 Crit:  +127°C
S-IO Temp:   +61°C  (low  =   -55°C, high =  +127°C)  
S-IO Crit:  +127°C
vid:      +0.000 V  (VRM Version 2.4)

GKrellM System Monitorを入れる

yum、または、yumexでインストールする。

# yum install gkrellm

GKrellMを実行すると、次のようなバーが表示される。
GkrellM

Sun Clock プラグイン

住所の緯度経度を調べる。
Geocoding - 住所から緯度経度を検索

GKrellWeather プラグイン

ICAO(国際民間航空機関 - International Civil Aviation Organization)を調べる。
Wikipedia
例:
 シドニー国際空港 - ICAO: YSSY
 新千歳空港 - ICAO: RJCC
 丘珠空港 - ICAO: RJCO

ようこそ: Guest (Guest)
linux/hardware_watch.txt · 最終更新: 2011/03/22 11:13 (外部編集)
 
特に明示されていない限り、本Wikiの内容は次のライセンスに従います: CC Attribution-Noncommercial-Share Alike 3.0 Unported