Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    46

    Default 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

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    46

    Default Restart

    You'll also need to restart or reboot:

    /etc/init.d/munin-node restart

    Brad

  3. #3
    Member el_zat's Avatar
    Join Date
    May 2005
    Posts
    24

    Thumbs up

    Buen Post!

  4. #4
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    833
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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 the king. Usability is my God.

  5. #5
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    833
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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 the king. Usability is my God.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2002
    Location
    Pula, Croatia
    Posts
    196
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Fixing Munin

    This should fix it permanently

    Code:
    # munin mysql fix
    touch /etc/munin/plugin-conf.d/mysql.conf
    echo -e "[mysql*]\nuser root\ngroup wheel\nenv.mysqladmin /usr/bin/mysqladmin\nenv.mysqlopts --defaults-extra-file=/root/.my.cnf" > /etc/munin/plugin-conf.d/mysql.conf
    /etc/init.d/munin-node restart

Similar Threads & Tags
Similar threads

  1. Thanks for fixing the changelog
    By maggy in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 08-17-2007, 12:39 PM
  2. PostgreSQL - fixing it
    By darkelder in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-26-2007, 11:37 PM
  3. fixing dns
    By mimosa7 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-14-2007, 08:29 PM
  4. Fixing Urchin(How to)
    By cguimont in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-10-2004, 10:07 AM
  5. Need help fixing redirect
    By sitemouse in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-09-2004, 12:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube