[mrtg] mrtg 2.16 ipv6 on centos

Florian tslbai at agilolfinger.de
Sat Sep 3 18:46:22 CEST 2011


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:abc123 at 85.237.138.221
>>>> 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.



More information about the mrtg mailing list