Sensorsの監視内容がおかしい。
IBM鯖にいれたedubuntuを10.10から11.04にしてみたのはいいが・・・
$ aptitude search sensor |egrep -i ^i i A libsensors-applet-plugin0 - Library for plugins for the 'sensors-apple i A libsensors4 - 温度/電圧/ファンセンサへのアクセス用ライブ i A lm-sensors - utilities to read temperature/voltage/fan i sensord - hardware sensor information logging daemon i sensors-applet - Display readings from hardware sensors in
Sensorsをインストールしてみたらsyslogに
May 11 04:47:34 hoge sensord: sensord stopped May 11 04:47:35 hoge sensord: sensord started May 11 04:47:35 hoge sensord: Sensor alarm: Chip adt7476-i2c-0-2e: temp1: -128.0 C (min = -127.0 C, max = 127.0 C) [ALARM] May 11 04:47:35 hoge sensord: Chip: k8temp-pci-00c3 May 11 04:47:35 hoge sensord: Adapter: PCI adapter May 11 04:47:35 hoge sensord: Core0 Temp: 37.0 C May 11 04:47:35 hoge sensord: Core1 Temp: 37.0 C May 11 04:47:35 hoge sensord: Chip: adt7476-i2c-0-2e May 11 04:47:35 hoge sensord: Adapter: SMBus nForce2 adapter at 1440 May 11 04:47:35 hoge sensord: in0: +1.20 V (min = +1.08 V, max = +1.30 V) May 11 04:47:35 hoge sensord: Vcore: +1.81 V (min = +1.68 V, max = +1.92 V) May 11 04:47:35 hoge sensord: +3.3V: +3.31 V (min = +2.96 V, max = +3.61 V) May 11 04:47:35 hoge sensord: +5V: +5.05 V (min = +4.48 V, max = +5.50 V) May 11 04:47:35 hoge sensord: +12V: +11.58 V (min = +11.20 V, max = +12.86 V) May 11 04:47:35 hoge sensord: fan1: 2939 RPM (min = 600 RPM) May 11 04:47:35 hoge sensord: fan2: 0 RPM (min = 0 RPM) May 11 04:47:35 hoge sensord: fan3: 0 RPM (min = 0 RPM) May 11 04:47:35 hoge sensord: fan4: 0 RPM (min = 0 RPM) May 11 04:47:35 hoge sensord: temp1: -128.0 C (min = -127.0 C, max = 127.0 C) [ALARM] May 11 04:47:35 hoge sensord: temp2: 38.0 C (min = -127.0 C, max = 55.0 C) May 11 04:47:35 hoge sensord: temp3: 9.2 C (min = -127.0 C, max = 92.0 C) May 11 04:47:35 hoge sensord: cpu0_vid: +1.550 V May 11 04:48:35 hoge sensord: Sensor alarm: Chip adt7476-i2c-0-2e: temp1: -128.0 C (min = -127.0 C, max = 127.0 C) [ALARM]
なんて意味不明な値を記録する。
ちなみに設定は sensors-detect によって、自動的に行われたまんま既定値における現象である。
一般的に、センサーの未接続を検出するためには、「センサーの出力には、プルダウン抵抗ないしプルアップ抵抗を接続する」手法がとられる。
つまり、-128.0 Cという検出温度は未接続を意味すると考えるのが妥当であろう。
とりあえす、マニュアルを覗いてみることにして、
IGNORE STATEMENT
An ignore statement is a hint that a specific feature should be ignored
- probably because it returns bogus values (for example, because a fan
or temperature sensor is not connected). Example:ignore fan1
The only argument is the feature name. Please note that this does not
Manual page sensors.conf(5) line 90/415 27%
disable anything in the actual sensor chip; it simply hides the feature
in question from libsensors users.
という記述を見つけたので、ファイルの最後の方にある「adt7476」を検索して
--- /etc/sensors3.conf~ 2011-05-11 04:47:26.119020659 +0900 +++ /etc/sensors3.conf 2011-05-11 04:55:05.301101466 +0900 @@ -467,6 +467,6 @@ # +12V readings. # set in4_min 12.0 * 0.90 # set in4_max 12.0 * 1.10 - - label temp2 "M/B Temp" + ignore temp1 + label temp2 "M/B Temp"
とか、てきとーに書き換えてみた。
そして
sudo invoke-rc.d sensord restart
とかサービスのリスタートをかけてみると
May 11 04:55:46 hoge sensord: sensord stopped May 11 04:55:47 hoge sensord: sensord started May 11 04:55:47 hoge sensord: Chip: k8temp-pci-00c3 May 11 04:55:47 hoge sensord: Adapter: PCI adapter May 11 04:55:47 hoge sensord: Core0 Temp: 37.0 C May 11 04:55:47 hoge sensord: Core1 Temp: 37.0 C May 11 04:55:47 hoge sensord: Chip: adt7476-i2c-0-2e May 11 04:55:47 hoge sensord: Adapter: SMBus nForce2 adapter at 1440 May 11 04:55:47 hoge sensord: in0: +1.20 V (min = +1.08 V, max = +1.30 V) May 11 04:55:47 hoge sensord: Vcore: +1.81 V (min = +1.68 V, max = +1.92 V) May 11 04:55:47 hoge sensord: +3.3V: +3.31 V (min = +2.96 V, max = +3.61 V) May 11 04:55:47 hoge sensord: +5V: +5.05 V (min = +4.48 V, max = +5.50 V) May 11 04:55:47 hoge sensord: +12V: +11.58 V (min = +11.20 V, max = +12.86 V) May 11 04:55:47 hoge sensord: fan1: 2787 RPM (min = 600 RPM) May 11 04:55:47 hoge sensord: fan2: 0 RPM (min = 0 RPM) May 11 04:55:47 hoge sensord: fan3: 0 RPM (min = 0 RPM) May 11 04:55:47 hoge sensord: fan4: 0 RPM (min = 0 RPM) May 11 04:55:47 hoge sensord: M/B Temp: 38.0 C (min = -127.0 C, max = 55.0 C) May 11 04:55:47 hoge sensord: temp3: 8.8 C (min = -127.0 C, max = 92.0 C) May 11 04:55:47 hoge sensord: cpu0_vid: +1.550 V
ということで、マイナス百二十八℃は検出されなくなった。
でめたし。でめたし。