Munin에서 Plugin을 실행 했을때 아래와 같은 문제를 만나볼수 있었습니다.

 

[root@yongbok ~]# tail -F /var/log/munin/munin-node.log
2013/04/19-11:17:01 [9708] # ERROR: Failed to exec.
2013/04/19-11:17:01 [9708] Service ‘example_script’ exited with status 42/0.
2013/04/19-11:17:01 [9708] Error output from example_script:
2013/04/19-11:17:01 [9708] Can’t exec “/etc/munin/plugins/example_script”: Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 215, line 30.

이것은 스크립트의 실행할 사용자의 권한이 주어지지 않아서 생긴 문제였습니다.

 

/etc/munin/plugin-conf.d/munin-node 설정파일에 해당 스크립트를 실행할수 있는 사용자를 지정 해주면 됩니다.

[root@yongbok ~]# nano /etc/munin/plugin-conf.d/munin-node
[example*]
user root