2006.05.16
lm_sensorsでCPUの温度を測る
lm_sensorsでCPUの温度を測りcactiなんかでグラフ化しようとこころみてみた。
◆必要なもの
lm_sensors-2.8.7-2.40.3
lm_sensors-devel-2.8.7-2.40.3
# /usr/sbin/sensors-detect
(省略)
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):
Probing for PCI bus adapters…
Sorry, no PCI bus adapters found.
We will now try to load each adapter module in turn.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.
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 already loaded.
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 0×69 (clock chip).
Can’t exec “i2cdetect”: そのようなファイルやディレクトリはありません at /usr/sbin/sensors-detect line 4695, line 1.
Couldn’t find i2cdetect program!! at /usr/sbin/sensors-detect line 4695, line 1.
i2cdetectが見つからないということなのでPATHを調べる
# whereis i2cdetect
i2cdetect: /usr/sbin/i2cdetect
# vi /usr/sbin/sensors-detect
# Same for /usr/local/sbin since we need i2cdetect which is installed there
# by default (reported by Lennard Klein)
#$ENV{PATH} = ‘/usr/local/sbin:’.$ENV{PATH}
# unless $ENV{PATH} =~ m,(^|:)/usr/local/sbin/?(:|$),;
$ENV{PATH} = ‘/usr/sbin:’.$ENV{PATH}
unless $ENV{PATH} =~ m,(^|:)/usr/sbin/?(:|$),;
以上の用にPATHを修正。
# /usr/sbin/sensors-detect
今度はチェックがきちんと動作するものの、
リストとは一致せず・・・。
Sorry, no chips were detected.
Either your sensors are not supported, or they are
connected to an I2C bus adapter that we do not support.
See doc/FAQ, doc/lm_sensors-FAQ.html, or
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/lm_sensors-FAQ.html
(FAQ #4.24.3) for further information.
If you find out what chips are on your board, see
http://secure.netroedge.com/~lm78/newdrivers.html for driver status.
どうやらDELLサーバーでは取れない模様 orz
ipmiというものなら取得できるみたい。
◆必要なもの
lm_sensors-2.8.7-2.40.3
lm_sensors-devel-2.8.7-2.40.3
# /usr/sbin/sensors-detect
(省略)
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):
Probing for PCI bus adapters…
Sorry, no PCI bus adapters found.
We will now try to load each adapter module in turn.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.
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 already loaded.
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 0×69 (clock chip).
Can’t exec “i2cdetect”: そのようなファイルやディレクトリはありません at /usr/sbin/sensors-detect line 4695,
Couldn’t find i2cdetect program!! at /usr/sbin/sensors-detect line 4695,
i2cdetectが見つからないということなのでPATHを調べる
# whereis i2cdetect
i2cdetect: /usr/sbin/i2cdetect
# vi /usr/sbin/sensors-detect
# Same for /usr/local/sbin since we need i2cdetect which is installed there
# by default (reported by Lennard Klein)
#$ENV{PATH} = ‘/usr/local/sbin:’.$ENV{PATH}
# unless $ENV{PATH} =~ m,(^|:)/usr/local/sbin/?(:|$),;
$ENV{PATH} = ‘/usr/sbin:’.$ENV{PATH}
unless $ENV{PATH} =~ m,(^|:)/usr/sbin/?(:|$),;
以上の用にPATHを修正。
# /usr/sbin/sensors-detect
今度はチェックがきちんと動作するものの、
リストとは一致せず・・・。
Sorry, no chips were detected.
Either your sensors are not supported, or they are
connected to an I2C bus adapter that we do not support.
See doc/FAQ, doc/lm_sensors-FAQ.html, or
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/lm_sensors-FAQ.html
(FAQ #4.24.3) for further information.
If you find out what chips are on your board, see
http://secure.netroedge.com/~lm78/newdrivers.html for driver status.
どうやらDELLサーバーでは取れない模様 orz
ipmiというものなら取得できるみたい。
Comment & Trackback
Comment