[mrtg] bind MRTG to a specific IPV6 interface or address

Florian tslbai at agilolfinger.de
Tue Sep 6 23:49:01 CEST 2011


Hello List,

is there a option, to bind mrtg (i'm using Version 2.16) to a specific
IPV6-address?

In the mailing list
http://www.mail-archive.com/mrtg@lists.oetiker.ch/msg21330.html
and in the user-manual i found the following IPV4-Syntax:

somehost:!192.168.2.4                      use 192.168.2.4 as source

When i use this with IPV6 i get an error:

somehost:![ip:v6::address]         doesn't work.

cfg-file:  Target[bai-gw-i-oct]:
ifInOctets.1&ifOutOctets.1:abc123 at bai-gw-i.asdf.de:![2001:a50:933f::f6]
 env LANG=C /usr/bin/mrtg bai.cfg
2011-09-06 23:37:31: WARNING: Skipping host bai-gw-i.asdf.de as it does
not resolve to an IPv4 or IPv6 address
2011-09-06 23:37:31: WARNING: no data for
ifInOctets&ifOutOctets:abc123 at bai-gw-i.asdf.de. Skipping further queries
for Host bai-gw-i.asdf.de in this round.
2011-09-06 23:37:31: ERROR: Target[bai-gw-i-oct][_IN_] '
$target->[0]{$mode} [2001:a50:933f::f6]' (warn): (Missing operator
before f::f6?)
2011-09-06 23:37:31: ERROR: Target[bai-gw-i-oct][_OUT_] '
$target->[0]{$mode} [2001:a50:933f::f6]' (warn): (Missing operator
before f::f6?)

-> The hostname bai-gw-i.asdf.de resolves to a IPV6 and to a IPV4 address.
-> The Target Target[bai-gw-i-oct]:
ifInOctets.1&ifOutOctets.1:abc123 at bai-gw-i.asdf.de works.

Thank you for hints.

Bye, Florian



More information about the mrtg mailing list