[mrtg] mrtg 2.17.7 IPv6 Centos

tslbai tslbai at agilolfinger.de
Sat Apr 20 14:45:05 CEST 2019


Hi,

thanks for this info.

I installed the Version from repo (a bit older 2.17.4) and tested ist.

Unfortunately there is the same Problem. IPv4 works, but over IPv6 there
are no snmp-packets sent to the target.

I only get a new error-message.

(btw: "EnableIPv6: yes" is in the config)

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

# env LANG=C /bin/mrtg /usr/local/mrtg2177/etc/mrtg.cfg
Subroutine IO::Socket::INET6::pack_sockaddr_in6 redefined at
/usr/share/perl5/vendor_perl/Exporter.pm line 66.
 at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
Subroutine IO::Socket::INET6::unpack_sockaddr_in6 redefined at
/usr/share/perl5/vendor_perl/Exporter.pm line 66.
 at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
Subroutine IO::Socket::INET6::sockaddr_in6 redefined at
/usr/share/perl5/vendor_perl/Exporter.pm line 66.
 at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
SNMP Error:
send_query: Address family not supported by protocol
SNMPv1_Session (remote host: "2001:db8:900f::f001"
[2001:db8:900f::f001].161)
                  community: "xyz123"
                 request ID: 899926041
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 497.
SNMPGET Problem for ifInOctets.7 ifOutOctets.7 sysUptime sysName on
sni123@[2001:db8:900f::f001]
 at /bin/mrtg line 2330.
2019-04-20 14:38:12: ERROR: Target[test6-gw1-vlan1][_IN_] '
$target->[0]{$mode} ' did not eval into defined data
2019-04-20 14:38:12: ERROR: Target[test6-gw1-vlan1][_OUT_] '
$target->[0]{$mode} ' did not eval into defined data

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

Bye,

Florian

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

On 19.04.2019 17:07, Courtney, Wrolf wrote:
> MRTG is in the CentOS repositories.
>
> Wrolf
>
> -----Original Message-----
> From: mrtg <mrtg-bounces+wrolf.courtney=mtahq.org at lists.oetiker.ch> On Behalf Of tslbai
> Sent: Thursday, April 18, 2019 5:06 PM
> To: mrtg at lists.oetiker.ch
> Subject: [mrtg] mrtg 2.17.7 IPv6 Centos
>
> Hi,
>
> i'm running a server on CentOS 7.6(1810) and installed mrtg 2.17.7 sucessfully.
>
> I have a simple IPv4-and IPv6-Konfig.
> IPv4 works; IPv6 fails.
>
> ### IPv4-Konfig - works with some error-messages ####################################
> EnableIPv6: yes
> WorkDir: /www/vhosts/www.xyz.de/htdocs/mrtg
> ImageDir: /www/vhosts/www.xyz.de/htdocs/mrtg/images
> LogDir: /var/lib/mrtg
> ThreshDir: /var/lib/mrtg
> MaxBytes[_]: 1250000
> Options[_]: growright, bits
> Target[test-gw1-vlan1]: ifInOctets.7&ifOutOctets.7:xyz123 at 192.168.25.25
> Title[test-gw1-vlan1]: bai-gw1 vlan1
> PageTop[test-gw1-vlan1]: <H1>bai-gw1 vlan1</H1>
>
> # env LANG=C /usr/local/mrtg2177/bin/mrtg /usr/local/mrtg2177/etc/mrtg.cfg Subroutine IO::Socket::INET6::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
> Subroutine IO::Socket::INET6::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
> Subroutine IO::Socket::INET6::sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
> Subroutine SNMP_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/../lib/mrtg2/SNMP_Session.pm line 149.
> Subroutine SNMPv1_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/../lib/mrtg2/SNMP_Session.pm line 604.
> Subroutine main::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/mrtg line 305.
> Subroutine main::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/mrtg line 305.
> Subroutine main::sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/mrtg line 305.
> #####################################################################
>
>
>
>
>
> ### IPv6-Konfig - doesnt work
> EnableIPv6: yes
> WorkDir: /www/vhosts/www.xyz.de/htdocs/mrtg
> ImageDir: /www/vhosts/www.xyz.de/htdocs/mrtg/images
> LogDir: /var/lib/mrtg
> ThreshDir: /var/lib/mrtg
> MaxBytes[_]: 1250000
> Options[_]: growright, bits
> Target[test6-gw1-vlan1]:
> ifInOctets.7&ifOutOctets.7:xyz123@[2001:db8:900f::f001]
> Title[test6-gw1-vlan1]: bai6-gw1 vlan1
> PageTop[test6-gw1-vlan1]: <H1>bai6-gw1 vlan1</H1>
>
> # env LANG=C /usr/local/mrtg2177/bin/mrtg /usr/local/mrtg2177/etc/mrtg.cfg Subroutine IO::Socket::INET6::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
> Subroutine IO::Socket::INET6::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
> Subroutine IO::Socket::INET6::sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/share/perl5/IO/Socket/INET6.pm line 16.
> Subroutine SNMP_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/../lib/mrtg2/SNMP_Session.pm line 149.
> Subroutine SNMPv1_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/../lib/mrtg2/SNMP_Session.pm line 604.
> Subroutine main::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/mrtg line 305.
> Subroutine main::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/mrtg line 305.
> Subroutine main::sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
>  at /usr/local/mrtg2177/bin/mrtg line 305.
> Undefined subroutine &SNMP_Session::inet_ntop called at /usr/local/mrtg2177/bin/../lib/mrtg2/SNMP_Session.pm line 549.
>
> No files are written to workdir.
> In tcpdump i can see that via IPv6 no packets are sent to the target.
> With ping6, snmpwalk etc. is the target reacheble.
>
>
> Could you please give me a hint for debugging?
>
> Thanks & Bye,
> Florian
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.oetiker.ch%2Fcgi-bin%2Flistinfo%2Fmrtg&data=02%7C01%7Cwrolf.courtney%40mtahq.org%7C0e76df34fe1d4d419e4208d6c441bb29%7C79c07380cc9841bd806b0ae925588f66%7C0%7C0%7C636912183922544766&sdata=lYnclGq0VB1nx95unUZ0K%2B1qfe5q6XwRdIaxgjk6sOA%3D&reserved=0



More information about the mrtg mailing list