前回、サーバー監視ツール「munin」を導入し、ハードディスク温度の監視も追加しました。
※参照 → CentOS − サーバ監視ツール「munin」導入!
導入記録
【前提条件】
●マザーボートモニタツール「lm_sensors」導入済み。
※導入方法はこちらを参照 → MRTGでCPU温度監視!
1.「lm_sensors」確認
「lm_sensors」が動作しているか確認する。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| [root@hoge ~]# sensors
smsc47m192-i2c-0-2d
Adapter: SMBus I801 adapter at 2000
+2.5V: +2.51 V (min = +0.00 V, max = +3.32 V)
VCore: +1.15 V (min = +0.00 V, max = +2.99 V)
+3.3V: +3.35 V (min = +0.00 V, max = +4.38 V)
+5V: +5.08 V (min = +0.00 V, max = +6.64 V)
+12V: +12.06 V (min = +0.00 V, max = +15.94 V)
VCC: +3.37 V (min = +0.00 V, max = +4.38 V)
+1.5V: +1.55 V (min = +0.00 V, max = +1.99 V)
+1.8V: +1.77 V (min = +0.00 V, max = +2.39 V)
Chip Temp: +30.0°C (low = -127°C, high = +127°C)
CPU Temp: +39.0°C (low = -127°C, high = +127°C)
Sys Temp: +34.0°C (low = -127°C, high = +127°C)
vid: +2.050 V (VRM Version 8.2)
smsc47m1-isa-0680
Adapter: ISA adapter
fan1: 0 RPM (min = 1280 RPM, div = 4) ALARM
fan2: 0 RPM (min = 1280 RPM, div = 4) ALARM
|
2.シンボリックリンク作成
今回はCPU温度のほかに電圧・ファン回転数も取得する。
1
2
3
| [root@hoge ~]# ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_volt
[root@hoge ~]# ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_temp
[root@hoge ~]# ln -s /usr/share/munin/plugins/sensors_ /etc/munin/plugins/sensors_fan
|
3.「munin−node」設定追加
1
2
3
| [root@hoge ~]# vi /etc/munin/plugin-conf.d/munin-node
[sensors_*] ← 追加
user root ← 追加
|
4.「munin−node」再起動
1
2
3
| [root@hoge ~]# service munin-node restart
Stopping Munin Node agents: [ OK ]
Starting Munin Node: [ OK ]
|
5.「munin」確認
5分後にブラウザで「 http://%EF%BC%9C%E3%82%B5%E3%83%BC%E3%83%90%E5%90%8D%EF%BC%9E/munin/ 」にアクセスして以下の情報が表示されればOK。
・CPU温度

・電圧

・ファン回転数

以上です。