Nice push... thanks!
Nice push... thanks!
Can anyone remind what the fix is to keep exim from zipping the logs so munin continues to work with exim? Thanks!
Hello,
It is likely that you have /etc/logrotate.conf set to compress for this section of it:
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.Code:# uncomment this if you want your log files compressed compress
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
Thanks! I remember now. This is a new server and I forgot what I did to make it work.
Saw the update on some servers and not on others.
Anyone have the command handy for forcing the munin update from the command line?
Conor Treacy | Hands-on Web Hosting
cPanel eCommerce Hosting | X-Cart Web Hosting
SEO Consulting Omaha Nebraska
Do you have the following selected in WHM > Manage Plugins for Munin?
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:Install and keep updated
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
-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.
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
and calling the module directly outputs what looks like perl errorsCode:# munin-run exim_mailstats received.value JC completed.value JD rejected.value BMK
Have tried reinstalling Munin from WHM but no luck. Any ideas?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
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:
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?Code:Empty compile time value given to use lib at /usr/share/munin/plugins/exim_mailstats line 74
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
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)
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.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
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.
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
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.
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
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)
Edit the file with your favourite editor (vi, nano, pico etc)Code:cp /usr/share/munin/plugins/exim_mailstats /usr/share/munin/plugins/exim_mailstats.bak
Change line 109 fromCode:vi /usr/share/munin/plugins/exim_mailstats
TOCode:if ($rotated) {
and save the fileCode:if ($rotated || $received eq 'U') {
remove the existing state file
Restart MuninCode:rm /var/lib/munin/plugin-state/exim_mailstats-127.0.0.1
After 10 minutes or so, you should see the points plotted on the throughput graph again.Code:/etc/init.d/munin-node restart
Hopefully cPanel will have a more elegant solution soon, but this did the job for me.![]()