Now, i compiled mrtg 2.17.2 from the sources and i get another error: # env LANG=C ./mrtg /tmp/bai.cfg Constant subroutine IO::Socket::INET6::AF_INET6 redefined at /usr/share/perl5/Exporter.pm line 67. at /usr/local/share/perl5/IO/Socket/INET6.pm line 16 Prototype mismatch: sub IO::Socket::INET6::AF_INET6 () vs none at /usr/share/perl5/Exporter.pm line 67. at /usr/local/share/perl5/IO/Socket/INET6.pm line 16 Constant subroutine IO::Socket::INET6::PF_INET6 redefined at /usr/share/perl5/Exporter.pm line 67. at /usr/local/share/perl5/IO/Socket/INET6.pm line 16 Prototype mismatch: sub IO::Socket::INET6::PF_INET6 () vs none at /usr/share/perl5/Exporter.pm line 67. at /usr/local/share/perl5/IO/Socket/INET6.pm line 16 Undefined subroutine &SNMP_Session::unpack_sockaddr_in6 called at /usr/local/mrtg2172/bin/../lib/mrtg2/SNMP_Session.pm line 548.
The patch from http://oss.oetiker.ch/mrtg-trac/ticket/45 can't be applied. Florian -------------------------- Am 03.09.2011 18:46, schrieb Florian: > Thanks for the hint. This file contains the mrtg-v6-doku. > (like http://oss.oetiker.ch/mrtg/doc/mrtg-ipv6.en.html ) > Unfortunately the file doesn't help. > > Florian > -------------------------------- > Am 03.09.2011 18:30, schrieb Lyle Giese: >> On 09/03/11 10:38, Florian wrote: >>> In my config (/tmp/test.cfg) is IPV6 enabled: >>> >>> EnableIPv6: yes >>> >>> Florian >>> >>> Am 03.09.2011 17:18, schrieb Lyle Giese: >>>> On 09/03/11 08:00, Florian wrote: >>>>> Hi, >>>>> >>>>> i'm running CentOS 6.0 on my server and installed mrtg from the >>>>> rpm-package mrtg-2.16.2 . >>>>> I also installed the packages perl-IO-Socket-INET6 perl-Socket6. >>>>> >>>>> mrtg works fine with IPV4-Addresses. When i specify a Target by >>>>> IPV6-Address mrtg fails. >>>>> >>>>> Here i have a small sample-config for V4 which is working: >>>>> >>>>> LogDir: /tmp >>>>> ThreshDir: /tmp >>>>> HtmlDir: /tmp >>>>> ImageDir: /tmp >>>>> LogDir: /tmp >>>>> EnableIPv6: yes >>>>> Target[bai-gw-i-oct]: ifInOctets.1&ifOutOctets.1:[email protected] >>>>> Title[bai-gw-i-oct]: Test >>>>> MaxBytes[bai-gw-i-oct]: 100000000 >>>>> ---------------------------------------------------- >>>>> >>>>> Here the same for V6 which fails. >>>>> When running mrtg there is no snmp-packet sent to the network. >>>>> >>>>> LogDir: /tmp >>>>> ThreshDir: /tmp >>>>> HtmlDir: /tmp >>>>> ImageDir: /tmp >>>>> LogDir: /tmp >>>>> EnableIPv6: yes >>>>> Target[bai-gw-i-oct]: >>>>> ifInOctets.1&ifOutOctets.1:abc123@[2001:b50:940f::f001] >>>>> Title[bai-gw-i-oct]: Test >>>>> MaxBytes[bai-gw-i-oct]: 100000000 >>>>> >>>>> # env LANG=C /usr/bin/mrtg /tmp/test.cfg >>>>> SNMP Error: >>>>> send_query: Address family not supported by protocol >>>>> SNMPv1_Session (remote host: "2001:b50:940f::f001" >>>>> [2001:b50:940f::f001].161) >>>>> community: "abc123" >>>>> request ID: 1156567655 >>>>> PDU bufsize: 8000 bytes >>>>> timeout: 2s >>>>> retries: 5 >>>>> backoff: 1) >>>>> at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 492 >>>>> SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on >>>>> sni123@[2001:b50:940f::f001] >>>>> at /usr/bin/mrtg line 2202 >>>>> 2011-09-03 14:13:01: ERROR: Target[bai-gw-i-oct][_IN_] ' >>>>> $target->[0]{$mode} ' did not eval into defined data >>>>> 2011-09-03 14:13:01: ERROR: Target[bai-gw-i-oct][_OUT_] ' >>>>> $target->[0]{$mode} ' did not eval into defined data >>>>> >>>>> >>>>> >>>>> >>>>> With snmpwalk (net-snmp-utils) i can reach the device by IPV4 and >>>>> IPV6. >>>>> >>>>> Where is my mistake? Has anyone a hint? >>>>> >>>>> Thanks in advance, >>>>> Florian >>>> Have you enabled IPv6 in your mrtg.cfg? >>>> >>>> EnableIPv6 >>>> >>>> Lyle Giese >>>> LCR Computer Services, Inc. >> I install from source and in the doc directory there is a >> mrtg-ipv6.pod file I am looking at. You may want to review the >> requirements noted in that file. There are some version requirements >> noted at the end of that document for IPv6. >> >> I am not familar with CentOS. I have been using SuSE and OpenSuSE for >> a while here. >> >> Lyle Giese >> LCR Computer Services, Inc. > _______________________________________________ > mrtg mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
