- ハードウエアモニタリング -

   
 lm_sensors インストール (*^^)v

 サーバ機の温度、電圧、ファン回転速度などの情報をGETしてみる!!

 その情報を得るには、lm_sensors と言うソフトが必要だそうで^_^;
 インストールしてみることに・・・
 OS環境は Fedora Core1  カーネル 2.4.22-1.2199.nptlです。

 lm_sensorsサイトさん  Welcome to m9841.info!さん を参考にさせて頂きましたm(__)m
 
 まずは、yumで、lm_sensorsをインストール(*^^)v

# yum install lm_sensors
Gathering header information file(s) from server(s)
Server: Fedora Core 1 - i386 - Base
Server: Fedora Core 1 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: lm_sensors 2.8.1-1.i386]
Is this ok [y/N]:  
← ここで、Enterキー

Getting lm_sensors-2.8.1-1.i386.rpm
lm_sensors-2.8.1-1.i386.r 100% |=========================| 352 kB 00:00
Running test transaction:
Test transaction complete, Success!
lm_sensors 100 % done 1/1
Installed: lm_sensors 2.8.1-1.i386
Transaction(s) Complete


 インストールが完了したら・・・sensors-detect コマンドを実行。
 環境を読み込んで、下記の様な設定の質問攻めに合います( ̄ー ̄)ニヤリッ

 Yesと入力して答えてみました・・・
 Enterキーでも、可能ですのね(^^ゞ

# sensors-detect

This program will help you determine which I2C/SMBus modules you need to
load to use lm_sensors most effectively. You need to have i2c and
lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-*
files, for most things.
If you have patched your kernel and have some drivers built-in, you can
safely answer NO if asked to load some modules. In this case, things may
seem a bit confusing, but they will still work.

BIOS vendor (ACPI): AOPEN
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
Probing for PCI bus adapters...
Use driver `i2c-i810' for device 00:02.0: Intel 82815 GMCH
Use driver `i2c-i801' for device 00:1f.3: Intel 82801BA ICH2
Probe succesfully concluded.

We will now try to load each adapter module in turn.
Load `i2c-i810' (say NO if built into your kernel)? (YES/no): YES
Module loaded succesfully.
Load `i2c-i801' (say NO if built into your kernel)? (YES/no):
Module loaded succesfully.
Do you now want to be prompted for non-detectable adapters? (yes/NO):
To continue, we need module `i2c-dev' to be loaded.
If it is built-in into your kernel, you can safely skip this.
i2c-dev is not loaded. Do you want to load it now? (YES/no): YES
Module loaded succesfully.

We are now going to do the adapter probings. Some adapters may hang halfway
through; we can't really help that. Also, some chips will 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. That often
includes address 0x69 (clock chip).

Next adapter: I810/I815 I2C Adapter (Bit-shift algorithm)
Do you want to scan it? (YES/no/selectively):
Next adapter: I810/I815 I2C Adapter (Bit-shift algorithm)
Do you want to scan it? (YES/no/selectively):

Next adapter: I810/I815 DDC Adapter (Bit-shift algorithm)
Do you want to scan it? (YES/no/selectively):

Next adapter: SMBus I801 adapter at 5000 (Non-I2C SMBus adapter)
Do you want to scan it? (YES/no/selectively):
Can't open /dev/i2c-2

Some chips are also accessible through the ISA bus. ISA probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. Do you want to scan the ISA bus? (YES/no):
Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Success!
(confidence 8, driver `w83781d')
Probing for `Winbond W83697HF'
Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. Do you want to scan for Super I/O sensors? (YES/no):
Some Super I/O chips may also contain sensors. Super I/O probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. Do you want to scan for Super I/O sensors? (YES/no):
Probing for `SMSC 47M10x Super IO Fan Sensors'
Failed! (0x00)
Probing for `SMSC 47M14x Super IO Fan Sensors'
Failed! (0x00)
Probing for `VT1211 Super IO Sensors'
Failed! (0x52)
Probing for `Winbond W83627HF Super IO Sensors'
Success... found at address 0x0290
Probing for `Winbond W83627THF Super IO Sensors'
Failed! (0x52)
Probing for `Winbond W83697HF Super IO Sensors'
Failed! (0x52)

Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `w83781d' (should be inserted):
Detects correctly:
* ISA bus address 0x0290 (Busdriver `i2c-isa')
Chip `Winbond W83627HF' (confidence: 8)

Driver `w83627hf' (may not be inserted):
Misdetects:
* ISA bus address 0x0290 (Busdriver `i2c-isa')
Chip `Winbond W83627HF Super IO Sensors' (confidence: 8)  

 ↑センサーはこれが検出されたって事?!



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)?
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 w83781d
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----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.

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors
for initialization at boot time.



 
 /etc/rc.d/rc.local ファイルに、上記の緑色文字の部分をコピー&貼り付けしました(*^^)v
 
 /etc/conf.modules ファイルに、上記の黄色文字の部分をコピー&貼り付けしました( ̄ー ̄)
 
 そんでもって・・・ マシンを再起動!!


 sensors コマンド試してみます( ̄ー ̄)ニヤリッ(一般ユーザでOKよん)

$ sensors
w83627hf-isa-0290
Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 1: +1.72 V (min = +0.00 V, max = +0.00 V)
VCore 2: +1.80 V (min = +0.00 V, max = +0.00 V)
+3.3V: +3.40 V (min = +2.97 V, max = +3.63 V)
+5V: +5.11 V (min = +4.50 V, max = +5.48 V)
+12V: +11.89 V (min = +10.79 V, max = +13.11 V)
-12V: -12.03 V (min = -13.21 V, max = -10.90 V)
-5V: -5.10 V (min = -5.51 V, max = -4.51 V)
V5SB: +5.48 V (min = +4.50 V, max = +5.48 V) ALARM
VBat: +3.32 V (min = +2.70 V, max = +3.29 V) ALARM
fan1: 4856 RPM (min = 3000 RPM, div = 2)
fan2: 0 RPM (min = 3000 RPM, div = 2)
fan3: 0 RPM (min = 3000 RPM, div = 2)
temp1: +46?C (limit = +60?C) sensor = thermistor
temp2: +46.5?C (limit = +60?C, hysteresis = +50?C) sensor = PII/Celeron diode ALARM
temp3: +127.5?C (limit = +60?C, hysteresis = +50?C) sensor = PII/Celeron diode ALARM
vid: +0.000 V
alarms:
beep_enable:
Sound alarm disabled


 追記

 Winbond W83627HF   

 Hardware Monitor Functions

・ 5 VID input pins for CPU Vcore identification
・ 3 thermal inputs from optionally remote thermistors or 2N3904 transistors or PentiumTM II
(Deschutes) thermal diode output
・ 7 positive voltage inputs (typical for +12V, -12V, +5V, -5V, +3.3V, VcoreA, VcoreB)
・ 2 intrinsic voltage monitoring (typical for Vbat, +5VSB)