UnixServerAdmin

Server Administration & Management

How to fix mailman stats in munin

By default if you install Munin via cPanel addons it does not enable mailman stats by default even though it shows a graph on the stats pageā€¦ Here is how you can enable the stats.

First, you must edit your /etc/munin/plugin-conf.d/cpanel.conf file to look like this

# /etc/munin/plugin-conf.d/cpanel.conf

——————————————————————————-

[mysql*]
user root
group wheel
env.mysqladmin /usr/bin/mysqladmin
env.mysqlopts –defaults-extra-file=/root/.my.cnf

[exim_mailqueue]
group mail

[exim_mailstats]
group mail

[mailman]
user mailman
——————————————————————————-

Next, edit /etc/munin/plugins/mailman and change the line:

# vi /etc/munin/plugins/mailman

———————-
to
$pos=0;
———————-

Also touched ‘touch /var/lib/munin/plugin-state/munin-mailman-log.state’

Finally, if exim stats fail and you’ve made changes or restarted you need to remove the state file at /var/lib/munin/plugin-state/plugin-exim_mailstats.state

You’ll also need to restart munin

# /etc/init.d/munin-node restart

April 21, 2011 Posted by | cPanel | , , , | 4 Comments