munin で hddtemp_smartctl が上手く取得出来ない
hddtemp_smartctl が動かない
# munin-run hddtemp_smartctl Can't exec "-A": No such file or directory at /etc/munin/plugins/hddtemp_smartctl line 214. sda.value U sda.extinfo Command -A /dev/sda on drive sda failed: -1. The plugin needs to have read permission on all monitored devices. [ERROR] Command -A /dev/sda on drive sda failed: -1. The plugin needs to have read permission on all monitored devices. Can't exec "-A": No such file or directory at /etc/munin/plugins/hddtemp_smartctl line 214. sdb.value U sdb.extinfo Command -A /dev/sdb on drive sdb failed: -1. The plugin needs to have read permission on all monitored devices. [ERROR] Command -A /dev/sdb on drive sdb failed: -1. The plugin needs to have read permission on all monitored devices. #
The plugin needs to have read permission on all monitored devices. とのことだったので、パーミッション周りを弄っては、munin を再起動してって感じで試してみたのですがうまくいかず…
いろいろ弄った挙句、そもそも smartctl コマンドが無かったのが原因で上手く動作しなかったようです
smartctl をインストール
# aptitude install smartmontools
温度が正常に取得出来ました。
# munin-run hddtemp_smartctl sda.value 41 sdb.value 45 #