Hi,
I tried the patch available on this ticket. I still had output, as you
can see below:
geoffc@monit02: $ sudo env LANG=C /usr/bin/mrtg /etc/mrtg.cfg >
mrtg_output_4 2>&1
Subroutine SNMP_Session::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 149
Subroutine SNMPv1_Session::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 608
This output is a little different to the output previously discussed on
this ticket. However I've a new patch which is almost the same as the
patch on this bug report that makes my invocations of mrtg go silent. So
I'm treating it like it's the same issue.
Please find attached my modified patch.
Cheers,
Geoff Crompton
--- a/lib/SNMP_Session.pm
+++ b/lib/SNMP_Session.pm
@@ -146,7 +146,7 @@
if (eval {local $SIG{__DIE__};require Socket6;} &&
eval {local $SIG{__DIE__};require IO::Socket::INET6;
IO::Socket::INET6->VERSION("1.26");}) {
- import Socket6;
+ Socket6->import(qw(inet_pton getaddrinfo));
$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(),
"::1")));
$SNMP_Session::ipv6available = 1;
}
@@ -605,7 +605,7 @@
BEGIN {
if($SNMP_Session::ipv6available) {
import IO::Socket::INET6;
- import Socket6;
+ Socket6->import(qw(inet_pton getaddrinfo));
}
}