# So munin can read the mail log
adduser munin adm
- # So munin can sudo to get to postfix queue info
- # and smartctl info
- # and info about running domains
- cat >>/etc/sudoers <<EOF
-### BEGIN xvm-munin-config
-munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
-munin ALL=(munin) SETENV: NOPASSWD: ALL
-munin ALL=(root) SETENV: NOPASSWD: /etc/munin/plugins/hddtemp_smartctl , /etc/munin/plugins/smart_* , /etc/munin/plugins/xen_*
-### END xvm-munin-config
-EOF
-
# Install munin plugins that are now configured
munin-node-configure --suggest --shell | sh