MRTG error after upgrade to 11.32

Arvy

Well-Known Member
Oct 3, 2006
141
11
168
Brazil
cPanel Access Level
Root Administrator
Twitter
[SOLVED] MRTG error after upgrade to 11.32

Hello,

my server auto-updated to 11.32 at 2 AM. From 02:05 AM, every 10 minutes I receive an error from crontab.

Cron <[email protected]>
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok

Subroutine SNMPv1_Session::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 67.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 594

Any ideas?

Thank you.
 
Last edited:

Arvy

Well-Known Member
Oct 3, 2006
141
11
168
Brazil
cPanel Access Level
Root Administrator
Twitter
Found the solution. Server (RHEL5), the latest Perl version is 5.8.8 (yum list | grep perl). There was a bug, corrected on 5.10. Since the server cannot upgrade to 5.10, there's a manual patch in a file:

/usr/lib/perl/mrtg2/SNMP_Session.pm

More info and patch instructions:

#45 ([patch] ERROR Subroutine SNMPv1_Session::AF_INET6)
Changeset 330