lm_sensors

参考:
http://pochi.orz.ne.jp/oasis/archive_275.htm

yumでnet-snmpをいれると一緒に入るが、
yum版は怪しいらしいので?
ソースから入れる。


[root@serv2 ~]# cd /usr/local/src/
[root@serv2 src]# wget http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-3.1.1.tar.bz2

[root@serv2 src]# tar xf lm_sensors-3.1.1.tar.bz2
[root@serv2 src]# cd lm_sensors-3.1.1

[root@serv2 lm_sensors-3.1.1]# make

[root@serv2 lm_sensors-3.1.1]# make install

[root@serv2 lm_sensors-3.1.1]# sensors-detect

Intel Core family thermal sensor... Success!
(driver `coretemp')

Found `Fintek F71882FG/F71883FG Super IO Sensors' Success!
(address 0xa00, driver `f71882fg')

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

Driver `coretemp':
* Chip `Intel Core family thermal sensor' (confidence: 9)

Driver `f71882fg':
* ISA bus, address 0xa00
Chip `Fintek F71882FG/F71883FG Super IO Sensors' (confidence: 9)

Warning: the required module coretemp is not currently installed
on your system. If it is built into the kernel then it's OK.
Otherwise, check http://www.lm-sensors.org/wiki/Devices for
driver availability.

Warning: the required module f71882fg is not currently installed
on your system. If it is built into the kernel then it's OK.
Otherwise, check http://www.lm-sensors.org/wiki/Devices for
driver availability.

No modules to load, skipping modules configuration.

Unloading i2c-dev... OK

[root@serv2 ~]# sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[root@serv2 ~]#

残念。
出てきた名称をmodeprobeしてみたがないよう。

[root@serv2 ~]# modprobe coretemp
[root@serv2 ~]# modprobe f71882fg

アンインストールしてみる。

[root@serv2 ~]# cd /usr/local/src/
[root@serv2 src]# cd make uninstall

消えたっぽい。
yumでいれてみよう。

[root@serv2 ~]# yum -y install lm_sensors
[root@serv2 ~]# sensors-detect


Sorry, no sensors were detected.
Either your sensors are not supported, or they are connected to an
I2C or SMBus adapter that is not supported. See doc/FAQ,
doc/lm_sensors-FAQ.html or http://www.lm-sensors.org/wiki/FAQ
(FAQ #4.24.3) for further information.
If you find out what chips are on your board, check
http://www.lm-sensors.org/wiki/Devices for driver status.

yumの方が古いのか?案の定だめ。

yum remove -y lm_sensors

tarのやつを再度落とし、checkinstallでtarからrpmをつくり、
coretempとかドライバのみ手動で入れられないだろうか。
rpmにしないと、yumでnet-snmp入れたときのlm_sensorsに上書きされたら困ると思った。その手順は略。
参考:
http://futuremix.org/2009/01/rpm-tar-checkinstall
ありがとうございます。

coretempのドライバだけ入れられないか検索。

[root@serv2 src]# wget http://www.hentges.net/misc/howtos/p5wdh/files/coretemp.tar.gz
[root@serv2 src]# tar zxf coretemp.tar.gz
[root@serv2 coretemp]# cd coretemp
[root@serv2 coretemp]# ./compile.sh
(略)
Driver failed to compile
[root@serv2 coretemp]#

だめっぽい
rpm -e lm_sensors

参考:
http://voicetwo.selfip.com/yashikiba/blog/
11月9日の記事。CentOS5 + G45環境。
感謝。

[root@serv2 src]# wget http://www.pperry.f2s.com/linux/lm_sensors/2.10.8/lm_sensors-2.10.8-1.el5.elrepo.i386.rpm
[root@serv2 src]# wget http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-1.1-2.el5.i686.rpm
[root@serv2 src]# rpm -Uvh lm_sensors-2.10.8-1.el5.elrepo.i386.rpm
[root@serv2 src]# rpm -Uvh kmod-coretemp-1.1-2.el5.i686.rpm
[root@serv2 src]# sensors-detect
bash: /usr/local/sbin/sensors-detect: そのようなファイルやディレクトリはありません
[root@serv2 src]# which sensors-detect
/usr/sbin/sensors-detect
[root@serv2 src]# /usr/sbin/sensors-detect
(略)
Found `Fintek F71882FG/F71883FG Super IO Sensors' Success!
(address 0xa00, driver `f71882fg')
Intel Core family thermal sensor... Success!
(driver `coretemp')
Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `f71882fg' (should be inserted):
Detects correctly:
* ISA bus, address 0xa00
Chip `Fintek F71882FG/F71883FG 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@serv2 src]# sensors
bash: /usr/local/bin/sensors: そのようなファイルやディレクトリはありません
[root@serv2 src]# which sensors
/usr/bin/sensors
[root@serv2 src]# /usr/bin/sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +33°C (high = +100°C)

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

[root@serv2 src]#

本当に温度だけだけど、良しとする。