muninのプラグインの実行ユーザ

muninでハードディスクの温度を取得しようとすると,
権限が足らず以下のようにエラーが出てしまう.

yasuharu% sudo munin-run hddtemp_smartctl

ad10.value U
ad10.extinfo Command /usr/local/sbin/smartctl -A /dev/ad10 on drive ad10 failed: 256. The plugin needs to have read permission on all monitored devices.
[ERROR] Command /usr/local/sbin/smartctl -A /dev/ad10 on drive ad10 failed: 256. The plugin needs to have read permission on all monitored devices.

ただ,プラグインごとに実行ユーザを設定できるので以下のようにすればよい.

faq - Munin - Trac
http://munin-monitoring.org/wiki/faq#Q:CanImakethepluginrunasanotherusergroupthannobodynogroup

Posted at : 2011-08-14 14:22:08 / Category : none

Comments

まだコメントはありません / No comment.

Send comment


Name


Mail-address (empty is OK. If you want to notify update, please fill mail-address.)


Bot check code (241222 と入力してください / Please input 241222.)