From: Piotr Kowalczyk (pikov_at_piasta.pl)
Date: Mon, 07 Jun 2004 19:33:46 +0200 To: Chris Burton <Chris@7of9b.org>, firstname.lastname@example.org
Chris Burton, pieknego dnia 2004-06-07 19:23 napisal(a):
>>>Tell me, is there any reasonable way to monitor subinterfaces
>>>utilization on linux router? It's not difficult to get via snmp info
> You can do similar and monitor the IP address on the aliased devices using
> iptables. All you need is an iptable rule to "catch" the IP you are
> interested in looking at. Then put together a script that reads the iptables
> counters and gives it back to mrtg or if you want to monitor it remotely
> exec the reporting script from snmp.
Well, to be honest - that's _exactly_ what I did. I've already figured
out that traffic in Linux is counted by device driver, and there is no
way to do it my way.
But this is the right way or... in the future, maybe I'll try
ipt_account patch which is already present in cvs patch-o-matic-ng.