Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default [Cases 47292, 47314] Sweet Munin Update!

    Nice push... thanks!

  2. #2
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Can anyone remind what the fix is to keep exim from zipping the logs so munin continues to work with exim? Thanks!

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Hello,

    It is likely that you have /etc/logrotate.conf set to compress for this section of it:

    Code:
    # uncomment this if you want your log files compressed
    compress
    If that isn't set to allow compression, then I'm not certain how only exim is being compressed unless you've defined a special one for exim itself. cPanel itself doesn't define the exim logs rotation, since WHM > cPanel Log Rotation Configuration area doesn't have exim listed.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Thanks! I remember now. This is a new server and I forgot what I did to make it work.

  5. #5
    Member handsonhosting's Avatar
    Join Date
    Feb 2002
    Location
    Omaha, NE
    Posts
    150
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Saw the update on some servers and not on others.

    Anyone have the command handy for forcing the munin update from the command line?

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Do you have the following selected in WHM > Manage Plugins for Munin?

    Install and keep updated
    If you do and it isn't the newest, simply try saving the area. If that doesn't work, you might try a forced cPanel update:

    Code:
    /scripts/upcp --force
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Quote Originally Posted by handsonhosting View Post
    Saw the update on some servers and not on others.

    Anyone have the command handy for forcing the munin update from the command line?
    Code:
    /usr/local/cpanel/whostmgr/bin/whostmgr2 --updateaddons
    -Nick
    cPanel Inc.

    Need support? Submit a request here. Complimentary support is available to all license holders regardless of where you purchased your license.
    Need a complimentary support account? Create one here.

  8. #8
    Member
    Join Date
    Jan 2008
    Posts
    39
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    We're having some trouble getting the exim mail stats to work following the update. It always used to work but now the graph is blank.

    Calling it via munin-run outputs letters rather than a numerical value

    Code:
    # munin-run exim_mailstats
    received.value JC
    completed.value JD
    rejected.value BMK
    and calling the module directly outputs what looks like perl errors

    Code:
    # /usr/share/munin/plugins/exim_mailstats
    Use of uninitialized value in string eq at /usr/local/lib/perl5/5.8.8/x86_64-linux/lib.pm line 30.
    Empty compile time value given to use lib at /usr/share/munin/plugins/exim_mailstats line 74
    Use of uninitialized value in -e at /usr/local/lib/perl5/5.8.8/x86_64-linux/lib.pm line 37.
    Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.8.8/x86_64-linux/lib.pm line 97.
    Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.8.8/x86_64-linux/lib.pm line 98.
    Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.8.8/x86_64-linux/lib.pm line 99.
    Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/5.8.8/x86_64-linux/lib.pm line 100.
    Use of uninitialized value in hash element at /usr/local/lib/perl5/5.8.8/x86_64-linux/lib.pm line 60.
    Use of uninitialized value in require at /usr/share/munin/plugins/exim_mailstats line 75.
    Use of uninitialized value in require at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm line 69.
    Use of uninitialized value in require at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Common/Defaults.pm line 9.
    Use of uninitialized value in require at /usr/local/lib/perl5/5.8.8/Exporter.pm line 17.
    Use of uninitialized value in require at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Common/Defaults.pm line 10.
    Use of uninitialized value in require at /usr/local/lib/perl5/5.8.8/File/Basename.pm line 44.
    Use of uninitialized value in open at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm line 303.
    received.value U
    completed.value U
    rejected.value U
    Use of uninitialized value in -l at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm line 273.
    Use of uninitialized value in -l at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm line 273.
    Use of uninitialized value in -l at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm line 273.
    Use of uninitialized value in open at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm line 277.
    Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.8/Munin/Plugin.pm line 277.
    exim_mailstats: Could not open statefile '' for writing: No such file or directory
    Have tried reinstalling Munin from WHM but no luck. Any ideas?

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Hello,

    Would you be able to follow the steps in this discussion and let us know the results?

    View topic - Problem with exim_mailstats on FreeBSD :: For Linux & Unix Server Administrators and Developers :: BlueQuartz.US

    It has the same error when trying to run the command in root:

    Code:
    Empty compile time value given to use lib at /usr/share/munin/plugins/exim_mailstats line 74
    Next, it also mentions erroneous data being produced. As a question, what operating system are you using? Does it happen to be FreeBSD or is it CentOS?

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  10. #10
    Member
    Join Date
    Jan 2008
    Posts
    39
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    I have followed the thread and tried the debugging lines that are mentioned, the log file position seems to increase but the data values are strange (letters rather than numbers)

    Code:
    2011/02/18-01:10:03 [20215]     Pre: Exim log file position is 14639800, number of rejects is BO
    2011/02/18-01:10:03 [20215]     Post: Exim log file position is 14644693, number of rejects is BS
    
    2011/02/18-01:15:03 [21725]     Pre: Exim log file position is 14644693, number of rejects is BS
    2011/02/18-01:15:03 [21725]     Post: Exim log file position is 14650417, number of rejects is CC
    I've also tried removing the "use lib" line in /usr/share/munin/plugins/exim_mailstats but that doesn't seem to have made any difference.

    The OS is CentOS, actually this is happening on 2 different CentOS machines; one 32 bit and one 64 bit. The exim graphs on both machines were working fine up until the munin update last night.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    Hello,

    Would you be able to open up a ticket using WHM > Support Center > Contact cPanel or via the link in my signature for us to look into this further? The prior errors provided aren't common errors at all. I tried searching the desk for them and online and the link I provided in my last response was the only place that had any part of the error you were receiving.

    Once you've opened up a ticket, if you could post the ticket number here.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    Member
    Join Date
    Jan 2008
    Posts
    39
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    I think I may have found the solution. I just found the following ticket and made the changes that are mentioned in it. Munin now seems to be generating the exim throughput graphs again and running "munin-run exim_mailstats" returns a numeric value as expected.

    #985 (exim_mailstats plugin does weird string arithmetic after initializing) - Munin - Trac

    Maybe this can be changed for a future update? Hopefully this will help anyone else that might be experiencing this anyway.

    Thanks for the help, Tristan!
    Last edited by LDHosting; 02-17-2011 at 07:10 PM.

  13. #13
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default re: [Cases 47292, 47314] Sweet Munin Update!

    It turns out my problem was the same as his!

    Code:
    root@one [/]# cat /etc/logrotate.conf
    # see "man logrotate" for details
    # rotate log files weekly
    weekly
    
    # keep 4 weeks worth of backlogs
    rotate 4
    
    # create new (empty) log files after rotating old ones
    create
    
    # uncomment this if you want your log files compressed
    # compress
    
    # RPM packages drop log rotation information into this directory
    include /etc/logrotate.d
    
    # no packages own wtmp -- we'll rotate them here
    /var/log/wtmp {
        monthly
        minsize 1M
        create 0664 root utmp
        rotate 1
    }
    
    # system-specific logs may be also be configured here.
    root@one [/]# munin-run exim_mailstats
    received.value U
    completed.value U
    rejected.value U

  14. #14
    Member
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    52

    Default [Cases 47292, 47314] Munin update - stopped update Exim Mail Throughput graph

    Hello,

    after the munin update in last day, the "Exim Mail Throughput" stopped work.

    Not only in one server, but in all my servers. This graph is very important for me to control spam and mail usage.

    [Cases 47292, 47314] Sweet Munin Update!-untitled.gif
    [Cases 47292, 47314] Sweet Munin Update!-exim_mailstats-day.png

    Can you help me, please?

    thank you
    Arvy

  15. #15
    Member
    Join Date
    Jan 2008
    Posts
    39
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: [Cases 47292, 47314] Munin update - stopped update Exim Mail Throughput graph

    I had exactly the same problem, but managed to find a solution from a Munin bug report which I posted here

    http://forums.cpanel.net/f5/sweet-mu...tml#post789311

    If you have root SSH access, the steps that I took were:

    Backup the existing file (just in case)
    Code:
    cp /usr/share/munin/plugins/exim_mailstats /usr/share/munin/plugins/exim_mailstats.bak
    Edit the file with your favourite editor (vi, nano, pico etc)
    Code:
    vi /usr/share/munin/plugins/exim_mailstats
    Change line 109 from
    Code:
    if ($rotated) {
    TO
    Code:
    if ($rotated || $received eq 'U') {
    and save the file

    remove the existing state file
    Code:
     rm /var/lib/munin/plugin-state/exim_mailstats-127.0.0.1
    Restart Munin
    Code:
    /etc/init.d/munin-node restart
    After 10 minutes or so, you should see the points plotted on the throughput graph again.

    Hopefully cPanel will have a more elegant solution soon, but this did the job for me.

Similar Threads & Tags
Similar threads

  1. [Cases 52281, 51103] PHP 5.3.7 Released!
    By Ivan A in forum Archived Feature Requests
    Replies: 9
    Last Post: 08-28-2011, 09:53 AM
  2. [Cases 52047, 52211] tailwatchd keeps failing?
    By java_dude in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-22-2011, 03:52 PM
  3. Replies: 6
    Last Post: 02-18-2011, 06:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube