munin で smartctl の値を見るための設定
munin には smartctl 用のプラグインが最初から入っているので、それを表示するようにする。
[paraches@localhost ~]$ cd /etc/munin/plugins [paraches@localhost plugins]$ sudo ln -s /usr/share/munin/plugins/hddtemp_smartctl .
/etc/munin/plugin-conf.d/munin-node を編集して smartctl の値が読める様に設定をする。
(一番最後に以下を加える。以下の例は sda, sdb に接続されている SATA のディスク 2台をチェックしてます。)
[hddtemp_smartctl] user root env.drives sda sdb env.type_sda ata env.type_sdb ata
これで再度 munin-node をリスタートすれば、HDD の温度もグラフで見られた!
[paraches@localhost plugins]$ sudo /etc/init.d/munin-node restart Stopping Munin Node agents: [ OK ] Starting Munin Node: [ OK ] [paraches@localhost plugins]$