Ubuntu Serverにlm-sensorsを導入
いまさらながらubuntus serverにlm-sensorsを導入
OS
- Ubuntu Server 12.04 LTS AMD64
ハードウェア
- MB: Albatron K8M800-754 (VIA K8M800, VIA VT8237R, RealTek RTL8100C)
- CPU: AMD Turion 64 MT-30 (CLK:1.6GHz, L2:1MB, TDP:25W)
- MEM: DDR 266 PC2100 512MB*2
セットアップ
$ sudo aptitude install lm-sensors
以下の新規パッケージがインストールされます:
libsensors4{a} lm-sensors
0 個のパッケージを更新、 2 個を新たにインストール、 0 個を削除予定、104 個が更新されていない。
133 k バイトのアーカイブを取得する必要があります。 展開後に 554 k バイトのディスク領域が新たに消費されます。
先に進みますか? [Y/n/?] y
取得: 1 http://jp.archive.ubuntu.com/ubuntu/ precise/main libsensors4 amd64 1:3.3.1-2ubuntu1 [31.9 kB]
取得: 2 http://jp.archive.ubuntu.com/ubuntu/ precise/universe lm-sensors amd64 1:3.3.1-2ubuntu1 [101 kB]
Fetched 133 kB in 0秒 (363 kB/s)
Selecting previously unselected package libsensors4.
(データベースを読み込んでいます ... 現在 54989 個のファイルとディレクトリがイン ストールされています。)
(.../libsensors4_1%3a3.3.1-2ubuntu1_amd64.deb から) libsensors4 を展開しています...
Selecting previously unselected package lm-sensors.
(.../lm-sensors_1%3a3.3.1-2ubuntu1_amd64.deb から) lm-sensors を展開しています...
man-db のトリガを処理しています ...
ureadahead のトリガを処理しています ...
ureadahead will be reprofiled on next reboot
libsensors4 (1:3.3.1-2ubuntu1) を設定しています ...
lm-sensors (1:3.3.1-2ubuntu1) を設定しています ...
libc-bin のトリガを処理しています ...
ldconfig deferred processing now taking place
libsensors3が無かったのでどうしようかと思ったが、libsensors4が関連としてインストールされた
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +9.0°C (crit = +65.0°C)
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +30.0°C
$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
loop
lp
rtc
コンフィグ
自動では定義の設定がされないようなので
$ sudo sensors-detect
# sensors-detect revision 5984 (2011-07-10 21:22:53 +0200)
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.
Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): y
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... Success!
(driver `k8temp')
AMD Family 10h thermal sensors... No
AMD Family 11h thermal sensors... No
AMD Family 12h and 14h thermal sensors... No
AMD Family 15h thermal sensors... No
AMD Family 15h power sensors... No
Intel digital thermal sensor... No
Intel AMB FB-DIMM thermal sensor... No
VIA C7 thermal sensor... No
VIA Nano thermal sensor... No
Some Super I/O chips contain embedded 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): y
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... Yes
Found `Fintek F71805F/FG Super IO Sensors' Success!
(address 0x295, driver `f71805f')
Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): y
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No
Some hardware monitoring chips are 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): y
Probing for `National Semiconductor LM78' 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
Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Using driver `i2c-viapro' for device 0000:00:11.0: VIA Technologies VT8237 South Bridge
Module i2c-dev loaded successfully.
Next adapter: SMBus Via Pro adapter at 5000 (i2c-0)
Do you want to scan it? (yes/NO/selectively): y
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 0x51
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... Yes
(confidence 8, not a hardware monitoring chip)
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `f71805f':
* ISA bus, address 0x295
Chip `Fintek F71805F/FG Super IO Sensors' (confidence: 9)
Driver `k8temp' (autoloaded):
* Chip `AMD K8 thermal sensors' (confidence: 9)
To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
f71805f
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!
Do you want to add these lines automatically to /etc/modules? (yes/NO)y
Successful!
Monitoring programs won't work until the needed modules are
loaded. You may want to run 'service module-init-tools start'
to load them.
Unloading i2c-dev... OK
Unloading cpuid... OK
$
(再起動)
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +9.0°C (crit = +65.0°C)
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: +34.0°C
とりあえずこれで良いか