#1 (permalink)  
Old 07-06-2007, 11:29 AM
Registered User
 
Join Date: Oct 2003
Posts: 45
bradandersen
Fixing Munin

Hello,

Here is how you fix Munin 1.24 for CPanel to get the mysql graphs, the HDD temp graphs, and the Mailman graphs:

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

[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

[hddtemp_smartctl]
user root
group root

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

$pos=undef;

to

$pos=0;

I 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

Good luck,
Brad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-06-2007, 11:31 AM
Registered User
 
Join Date: Oct 2003
Posts: 45
bradandersen
Restart

You'll also need to restart or reboot:

/etc/init.d/munin-node restart

Brad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 07:25 PM
el_zat's Avatar
Registered User
 
Join Date: May 2005
Posts: 19
el_zat is on a distinguished road
Thumbs up

Buen Post!
__________________
Bahia Servers . com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-02-2009, 10:26 AM
Registered User
 
Join Date: Jan 2008
Location: behind the sun
Posts: 409
Kent Brockman is on a distinguished road
Hi, I'm trying to make Munin work fully but when I change $pos=undef; to $pos=0; in /etc/munin/plugins/mailman, Munin logs correctly the mailman data ONLY ONCE and after that it simply stops registering data from all other plugins too! Even if I revert the changes to the variable $pos, it will simply not log anything anymore. (I had to reinstall Munin in order to make it work back again)
I cannot figure out why this happens. I'm running cPanel 11.24.4-S36281 with CentOS 4 on Virtuozzo with the Munin 1.2.4 from WHM plugins.
Any ideas?


Also, how can I avoid Munin to log things like swap? I noticed that simply erasing the swap symbolic link in /etc/munin/plugins (which links to the real swap plugin at /usr/share/munin/plugins ) makes Munin stop registering data from all other plugins too.

Regards
__________________
Content is king. Functionality is a gift. Usability is God.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-06-2009, 01:21 PM
Registered User
 
Join Date: Jan 2008
Location: behind the sun
Posts: 409
Kent Brockman is on a distinguished road
Quote:
Originally Posted by Kent Brockman View Post
Also, how can I avoid Munin to log things like swap? I noticed that simply erasing the swap symbolic link in /etc/munin/plugins (which links to the real swap plugin at /usr/share/munin/plugins ) makes Munin stop registering data from all other plugins too.
Solved. It was a write permissions problem.
__________________
Content is king. Functionality is a gift. Usability is God.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:52 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc