Just happened on couple of SLES 9 servers after installing the followings
the server just came back with postfix plugin.
perl-Net-Server-0.87-29.4.i586.rpm
munin-node-1.2.4-1.sles9.rpm
But by default munin plugins are
cpu entropy forks if_eth0 iostat memory mysql_slowqueries open_files processes df exim_mailqueue
if_err_eth0 if_eth1 irqstats mysql_bytes mysql_threads open_inodes
swap df_inode exim_mailstats if_err_eth1 interrupts load mysql_queries
netstat postfix_mailvolume vmstat
Then I manually did symbolic links from /etc/munin/plugins to /usr/share/munin/plugins
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/cpu cpu
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/df df
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/df_inode df_inode
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/load load
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/memory memory
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/processes processes
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_eth0 if_eth0
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_err_eth0 if_err_eth0
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_eth1 if_eth1
beastie:/etc/munin/plugins # ln -s /usr/share/munin/plugins/if_err_eth1 if_err_eth1
Now after this the munin-node crashed and failed to show graph even for postfix.
While checking the log for munin in /var/log/munin/munin-node.log, I got the following error message
Can’t exec “/etc/munin/plugins/df”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:09:52 Plugin timeout: df config: Interrupted system call
(pid 16888)
2008/08/07-18:09:52 Server closing!
Can’t exec “/etc/munin/plugins/cpu”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:02 Plugin timeout: cpu config: Interrupted system call
(pid 16894)
2008/08/07-18:10:02 Server closing!
Can’t exec “/etc/munin/plugins/load”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:12 Plugin timeout: load config: Interrupted system call
(pid 16901)
2008/08/07-18:10:12 Server closing!
Can’t exec “/etc/munin/plugins/swap”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:22 Plugin timeout: swap config: Interrupted system call
(pid 16908)
2008/08/07-18:10:22 Server closing!
Can’t exec “/etc/munin/plugins/forks”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:32 Plugin timeout: forks config: Interrupted system call
(pid 16911)
2008/08/07-18:10:32 Server closing!
Can’t exec “/etc/munin/plugins/entropy”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:42 Plugin timeout: entropy config: Interrupted system call
(pid 16912)
2008/08/07-18:10:42 Server closing!
Can’t exec “/etc/munin/plugins/netstat”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:10:52 Plugin timeout: netstat config: Interrupted system call
(pid 16917)
2008/08/07-18:10:52 Server closing!
Can’t exec “/etc/munin/plugins/iostat”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:02 Plugin timeout: iostat config: Interrupted system call
(pid 16986)
Can’t exec “/etc/munin/plugins/df_inode”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:14 Plugin timeout: df_inode config: Interrupted system call
(pid 16991)
2008/08/07-18:11:14 Server closing!
Can’t exec “/etc/munin/plugins/memory”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:24 Plugin timeout: memory config: Interrupted system call
(pid 16997)
2008/08/07-18:11:24 Server closing!
Can’t exec “/etc/munin/plugins/vmstat”: Permission denied at /usr/sbin/munin-node line 562.
2008/08/07-18:11:34 Plugin timeout: vmstat config: Interrupted system call
(pid 17014)
2008/08/07-18:11:34 Server closing!
2008/08/07-18:14:33 CONNECT TCP Peer: “XX.XX.XX.7:52286″ Local: “XX.XX.XX.145:4949″
Can’t exec “/etc/munin/plugins/df_inode”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 2.
Can’t exec “/etc/munin/plugins/entropy”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 3.
Can’t exec “/etc/munin/plugins/cpu”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 4.
Can’t exec “/etc/munin/plugins/postfix_mailvolume”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 5.
Can’t exec “/etc/munin/plugins/postfix_mailqueue”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 6.
Can’t exec “/etc/munin/plugins/forks”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 7.
Can’t exec “/etc/munin/plugins/iostat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 8.
Can’t exec “/etc/munin/plugins/memory”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 9.
Can’t exec “/etc/munin/plugins/df”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 10.
Can’t exec “/etc/munin/plugins/netstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 11.
Can’t exec “/etc/munin/plugins/swap”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 12.
Can’t exec “/etc/munin/plugins/vmstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 13.
Can’t exec “/etc/munin/plugins/load”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 14.
Can’t exec “/etc/munin/plugins/cpu”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 15.
Can’t exec “/etc/munin/plugins/entropy”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 16.
Can’t exec “/etc/munin/plugins/df_inode”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 17.
Can’t exec “/etc/munin/plugins/postfix_mailqueue”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 18.
Can’t exec “/etc/munin/plugins/postfix_mailvolume”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 19.
Can’t exec “/etc/munin/plugins/forks”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 20.
Can’t exec “/etc/munin/plugins/iostat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 21.
Can’t exec “/etc/munin/plugins/memory”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 22.
Can’t exec “/etc/munin/plugins/df”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 23.
Can’t exec “/etc/munin/plugins/netstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 24.
Can’t exec “/etc/munin/plugins/swap”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 25.
Can’t exec “/etc/munin/plugins/vmstat”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 26.
Can’t exec “/etc/munin/plugins/load”: Permission denied at /usr/sbin/munin-node line 562, <STDIN> line 27.
2008/08/07-18:14:33 Plugin “swap” exited with status 13. —-
2008/08/07-18:14:33 Plugin “netstat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df” exited with status 13. —-
2008/08/07-18:14:33 Plugin “memory” exited with status 13. —-
2008/08/07-18:14:33 Plugin “iostat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “forks” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailvolume” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailqueue” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df_inode” exited with status 13. —-
2008/08/07-18:14:33 Plugin “entropy” exited with status 13. —-
2008/08/07-18:14:33 Plugin “cpu” exited with status 13. —-
2008/08/07-18:14:33 Plugin “load” exited with status 13. —-
2008/08/07-18:14:33 Plugin “vmstat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “swap” exited with status 13. —-
2008/08/07-18:14:33 Plugin “netstat” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df” exited with status 13. —-
2008/08/07-18:14:33 Plugin “memory” exited with status 13. —-
2008/08/07-18:14:33 Plugin “iostat” exited with status 13. -
2008/08/07-18:14:33 Plugin “forks” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailqueue” exited with status 13. —-
2008/08/07-18:14:33 Plugin “postfix_mailvolume” exited with status 13. —-
2008/08/07-18:14:33 Plugin “cpu” exited with status 13. —-
2008/08/07-18:14:33 Plugin “entropy” exited with status 13. —-
2008/08/07-18:14:33 Plugin “df_inode” exited with status 13. —-
If you ever get these kinds of errors don’t forget to add plugins and permissions in /etc/munin/plugin-conf.d/munin-node file.
$cat /etc/munin/plugin-conf.d/munin-node
#
# This file contains configuration options for the plugins. Three
# options are understood by munin-node itself:
#
# user <user> # Set the user to run the plugin as
# group <group> # Set the group to run the plugin as
# command <command> # Run <command> instead of the plugin. %c
# expands to what would normally be run.
# env.<variable> # Sets <variable> in the plugin’s environment, see the
# individual plugins to find out which variables they
# care about.
#
#
[mysql*]
#env.mysqlopts -u someuser
[exim*]
group mail
[cps*]
user root
[apt]
user root
[vlan*]
user root
[postfix*]
user root
env.logfile mail
[cpu*]
user root
[memory*]
user root
[load*]
user root
[if_*]
user root
[if_err_*]
user root
[df*]
user root
[process*]
user root
[dhcpd]
env.leasefile /var/lib/dhcp/db/dhcpd.leases
You have to do this only when you get those error messages
Cheers


