Skip to content

Instantly share code, notes, and snippets.

@mitakeck
Created July 24, 2014 07:36
Show Gist options
  • Save mitakeck/5d661ee4914e30823342 to your computer and use it in GitHub Desktop.
Save mitakeck/5d661ee4914e30823342 to your computer and use it in GitHub Desktop.

hddtemp_smartctl が動かない

root@apricot:/usr/share/munin/plugins# 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.
root@apricot:/usr/share/munin/plugins# 

The plugin needs to have read permission on all monitored devices. とのことだったので、パーミッション周りを弄っては、munin を再起動してって感じで試してみたのですがうまくいかず、いろいろ弄った挙句、そもそも smartctl コマンドが無かったので上手く動作しなかったようです… なので、smartctl 導入したら、うまくうごきました。

root@apricot:/usr/share/munin/plugins# munin-run hddtemp_smartctl
sda.value 41
sdb.value 45
root@apricot:/usr/share/munin/plugins# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment