memorandum
FrontPage
管理
ヘルプ
VineLinux4.x/サーバ管理/Muninで温度監視
をテンプレートにして作成
開始行:
* HDDの温度監視 [#w230a2ba]
smartmontoolsのインストール。
# apt-get install smartmontools
smartdの起動。
# /etc/init.d/smartd start
Starting smartd: ...
自動起動の設定。
# chkconfig smartd on
# chkconfig --list smartd
smartd 0:off 1:off 2:off 3:on 4:on ...
/dev/hdaの情報を表示。
# smartctl -a /dev/hda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) ...
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Travelstar 5K100 series
Device Model: HTS541040G9AT00
Serial Number: MPB210X2G0BLJB
Firmware Version: MB2OA56J
User Capacity: 40,007,761,920 bytes
Device is: In smartctl database [for details use:...
ATA Version is: 6
ATA Standard is: ATA/ATAPI-6 T13 1410D revision 3a
Local Time is: Sat Nov 29 11:10:27 2008 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
:
略
:
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH ...
1 Raw_Read_Error_Rate 0x000b 100 100 062 ...
2 Throughput_Performance 0x0005 100 100 040 ...
3 Spin_Up_Time 0x0007 188 188 033 ...
4 Start_Stop_Count 0x0012 100 100 000 ...
5 Reallocated_Sector_Ct 0x0033 100 100 005 ...
7 Seek_Error_Rate 0x000b 100 100 067 ...
8 Seek_Time_Performance 0x0005 100 100 040 ...
9 Power_On_Hours 0x0012 031 031 000 ...
10 Spin_Retry_Count 0x0013 100 100 060 ...
12 Power_Cycle_Count 0x0032 100 100 000 ...
191 G-Sense_Error_Rate 0x000a 100 100 000 ...
192 Power-Off_Retract_Count 0x0032 100 100 000 ...
193 Load_Cycle_Count 0x0012 001 001 000 ...
194 Temperature_Celsius 0x0002 166 166 000 ...
196 Reallocated_Event_Count 0x0032 100 100 000 ...
197 Current_Pending_Sector 0x0022 100 100 000 ...
198 Offline_Uncorrectable 0x0008 100 100 000 ...
199 UDMA_CRC_Error_Count 0x000a 200 200 000 ...
:
略
>194 Temperature_Celsius・・・が表示されればOKです。右側...
シンボリックリンク作成。
# ln -s /usr/share/munin/plugins/hddtemp_smartctl /etc/m...
設定ファイル変更。
# vi /etc/munin/plugin-conf.d/munin-node
>
[hddtemp_smartctl]
user root
env.drives hda
env.args_hda --all -d ata
>hdaは環境によって適宜変更する。
munin-nodeの再起動。
# /etc/init.d/munin-node restart
Stopping Munin Node agents: ...
Starting Munin Node: ...
*CPUの温度監視(ACPI対応パソコンの場合) [#uecd654a]
Vine Seedより、acpi-0.09-1vl5.src.rpmをダウンロード。
>注:Vine Seedには、ビルド済みrpmも用意されていますが、自...
# cd /usr/src/vine/SRPMS/
# wget http://www.ring.gr.jp/pub/linux/Vine/VineSeed/SRP...
ビルド。
# rpmbuild --rebuild acpi-0.09-1vl5.src.rpm
インストール。
# cd ../RPMS/i386/
# rpm -Uvh acpi-0.09-1vl4.i386.rpm
acpiコマンドにて値が取得できるか確認。
# acpi -t
Battery 1: charged, 99%
Thermal 1: ok, 42.0 degrees C
>↑42.0 degrees C はCPUの温度。
シンボリックリンク作成。
# ln -s /usr/share/munin/plugins/acpi /etc/munin/plugins...
munin-nodeの再起動。
# /etc/init.d/munin-node restart
Stopping Munin Node agents: ...
Starting Munin Node: ...
ページを確認して正常に表示されていればOK。
#ref(sensors.png,nolink)
* コメント [#l88386d9]
#comment
終了行:
* HDDの温度監視 [#w230a2ba]
smartmontoolsのインストール。
# apt-get install smartmontools
smartdの起動。
# /etc/init.d/smartd start
Starting smartd: ...
自動起動の設定。
# chkconfig smartd on
# chkconfig --list smartd
smartd 0:off 1:off 2:off 3:on 4:on ...
/dev/hdaの情報を表示。
# smartctl -a /dev/hda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) ...
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Travelstar 5K100 series
Device Model: HTS541040G9AT00
Serial Number: MPB210X2G0BLJB
Firmware Version: MB2OA56J
User Capacity: 40,007,761,920 bytes
Device is: In smartctl database [for details use:...
ATA Version is: 6
ATA Standard is: ATA/ATAPI-6 T13 1410D revision 3a
Local Time is: Sat Nov 29 11:10:27 2008 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
:
略
:
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH ...
1 Raw_Read_Error_Rate 0x000b 100 100 062 ...
2 Throughput_Performance 0x0005 100 100 040 ...
3 Spin_Up_Time 0x0007 188 188 033 ...
4 Start_Stop_Count 0x0012 100 100 000 ...
5 Reallocated_Sector_Ct 0x0033 100 100 005 ...
7 Seek_Error_Rate 0x000b 100 100 067 ...
8 Seek_Time_Performance 0x0005 100 100 040 ...
9 Power_On_Hours 0x0012 031 031 000 ...
10 Spin_Retry_Count 0x0013 100 100 060 ...
12 Power_Cycle_Count 0x0032 100 100 000 ...
191 G-Sense_Error_Rate 0x000a 100 100 000 ...
192 Power-Off_Retract_Count 0x0032 100 100 000 ...
193 Load_Cycle_Count 0x0012 001 001 000 ...
194 Temperature_Celsius 0x0002 166 166 000 ...
196 Reallocated_Event_Count 0x0032 100 100 000 ...
197 Current_Pending_Sector 0x0022 100 100 000 ...
198 Offline_Uncorrectable 0x0008 100 100 000 ...
199 UDMA_CRC_Error_Count 0x000a 200 200 000 ...
:
略
>194 Temperature_Celsius・・・が表示されればOKです。右側...
シンボリックリンク作成。
# ln -s /usr/share/munin/plugins/hddtemp_smartctl /etc/m...
設定ファイル変更。
# vi /etc/munin/plugin-conf.d/munin-node
>
[hddtemp_smartctl]
user root
env.drives hda
env.args_hda --all -d ata
>hdaは環境によって適宜変更する。
munin-nodeの再起動。
# /etc/init.d/munin-node restart
Stopping Munin Node agents: ...
Starting Munin Node: ...
*CPUの温度監視(ACPI対応パソコンの場合) [#uecd654a]
Vine Seedより、acpi-0.09-1vl5.src.rpmをダウンロード。
>注:Vine Seedには、ビルド済みrpmも用意されていますが、自...
# cd /usr/src/vine/SRPMS/
# wget http://www.ring.gr.jp/pub/linux/Vine/VineSeed/SRP...
ビルド。
# rpmbuild --rebuild acpi-0.09-1vl5.src.rpm
インストール。
# cd ../RPMS/i386/
# rpm -Uvh acpi-0.09-1vl4.i386.rpm
acpiコマンドにて値が取得できるか確認。
# acpi -t
Battery 1: charged, 99%
Thermal 1: ok, 42.0 degrees C
>↑42.0 degrees C はCPUの温度。
シンボリックリンク作成。
# ln -s /usr/share/munin/plugins/acpi /etc/munin/plugins...
munin-nodeの再起動。
# /etc/init.d/munin-node restart
Stopping Munin Node agents: ...
Starting Munin Node: ...
ページを確認して正常に表示されていればOK。
#ref(sensors.png,nolink)
* コメント [#l88386d9]
#comment
ページ名:
検索
AND検索
OR検索
編集操作
一覧
単語検索
最終更新
バックアップ
ヘルプ
トップページ
http://kayanomori.net/
↑
アクセス数
本日:0人
昨日:0人
総数:0人
現在:9人
最新の20件
2022-07-16
投票箱
2022-01-30
FrontPage
2022-01-29
めも
2018-02-03
SandBox
PukiWiki
InterWikiName
FormattingRules
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
InterWiki
日本語
複数画像アップ掲示板 ECOUP(エコアップ) v1.31
日記/2006-12-12
日記
日記/2005-10-04
特定のオートコンプリート履歴だけを削除する
日記/2005-10-06
小ネタ集/WordPress
日記/2005-10-05
整形ルール
edit