smartctl HDD温度とるメモ

基本的にsmartctl入れているので

/etc/munin/plugin-conf.d/munin-node

下記設定を付け足すだけ。

[hddtemp_smartctl]
user root
env.smartctl /usr/sbin/smartctl
env.drives sda
env.type_sda 3ware,0
env.args_sda --all -d ata

もしくはhda

[hddtemp_smartctl]
user root
env.smartctl /usr/sbin/smartctl
env.drives hda
env.args_hda --all -d ata

そしてpluginsにリンクはる

ln -s /usr/share/munin/plugins/hddtemp_smartctl /etc/munin/plugins/hddtemp_smartctl
/etc/init.d/munin-node restart