[mrtg] monitoring iptables
Beluc
beluc62 at gmail.com
Tue Mar 25 12:23:10 CET 2014
Hello,
i have a server with some extra failover public interfaces where i'm
sending some kind of traffic on a round robin way using iptables SNAT :
auto eth1:0
iface eth1:0 inet static
address 1.1.1.1
netmask 255.255.255.255
broadcast 1.1.1.1
auto eth1:1
iface eth1:1 inet static
address 2.2.2.2
netmask 255.255.255.255
broadcast 2.2.2.2
auto eth1:2
iface eth1:2 inet static
address 3.3.3.3
netmask 255.255.255.255
broadcast 3.3.3.3
# iptables -L -n -t nat -v
[...]
Chain POSTROUTING (policy ACCEPT 10 packets, 685 bytes)
pkts bytes target prot opt in out source
destination
546 32760 SNAT all -- * eth1 0.0.0.0/0
1.2.3.0/22 statistic mode nth every 3 to:3.3.3.3
546 32760 SNAT all -- * eth1 0.0.0.0/0
1.2.3.0/22 statistic mode nth every 2 to:2.2.2.2
546 32760 SNAT all -- * eth1 0.0.0.0/0
1.2.3.0/22 statistic mode nth every 1 to:1.1.1.1
614K 41M MASQUERADE all -- * eth1 0.0.0.0/0 0.0.0.0/0
all this is working fine !
i'm already monitoring physical interface (eth1) of that server using
mrtg/smp and now, i would like to monitore pkts/bytes passing through extra
interfaces.
i searched a bit if iptables is reachable via snmp but cannot find anything.
does somebody know a way to achieve this ?
Regards,
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20140325/067cfc14/attachment.htm
More information about the mrtg
mailing list