On 06/18/2010 06:06 PM, Kent Busbee wrote:
See response below; Kent Busbee wrote:
I am getting the following error from cron mrtg.  How can I prevent it?
Should I cut mrtg off (how?) b/c I am using dovecot and I heard
somewhere
they do not work together?

I am not using IP6.


---------------------------- Original Message
----------------------------
Subject: Cron<root@mail>  env LANG=C /usr/bin/mrtg
/usr/share/toaster/mrtg/qmailmrtg.cfg 2>&1>  /dev/null
From:    "Cron Daemon"<[email protected]>
Date:    Thu, June 17, 2010 3:40 pm
To:      [email protected]
--------------------------------------------------------------------------

Subroutine SNMPv1_Session::AF_INET6 redefined at
/usr/lib/perl5/5.8.8/Exporter.pm line 65.
  at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 594
Subroutine main::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm
line 65.
  at /usr/bin/mrtg line 97


Just in case anyone else is facing this problem, after googling I found
the following:
http://oss.oetiker.ch/mrtg-trac/ticket/45

For the patch 1 of 2 hunks did not work so I had to manually edit the file.
Basically change all:
import Socket6;
to:
Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
in the file:
/usr/lib64/mrtg2/SNMP_Session.pm

This solves half the problem. You have to replace the same line in the file:
/usr/bin/mrtg

Other suggestions include upgrade to the latest stable mrtg (yum update
does not get you there.) or reinstall Perl (yikes - don't want to mess up
rpmforge).

Anyhow, it is working for me now with the above line replacements.

---------------------------------------------------------------------------------

I just noticed this on a QMT as well. Not sure what triggers it. All software is current. I have IPv6 turned off, so maybe that has something to do with it. This host isn't actually processing any mail yet. Strange. It's not consistent either. It started rather infrequently, then became more frequent. It doesn't occur every 5 minutes though.

At any rate, I applied the patch, and it appears to have fixed the problem. I do wonder which mrtg version this was fixed in. CentOS5.6 has mrtg 2.14.5-2, while mrtg 2.17 is current.

--
-Eric 'shubes'


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to