[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] RAQ4 and MRTG
- Subject: RE: [cobalt-users] RAQ4 and MRTG
- From: Graeme Fowler <graeme.fowler@xxxxxxxxxxxxxx>
- Date: Sat Sep 1 01:40:09 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Moritz wrote:
> eth0 - main ip
> eth0:1 - second ip
> eth0:2 - third ip
>
> Now I ran cfgmaker without any obvious problems and it
> created a configuration file for all of the interfaces.
> But still, MRTG only seems to gather data for the first
> interface (eth0). Now this it not exactly what I need ;-)
That's because the SNMP stack interfaces directly with the device
statistics, and on an ethernet interface with IP aliases *all* packets must
hit the main device - in your case, eth0.
The aliases themselves do not have a counter in the kernel. Have a look at:
/sbin/ifconfig -a
You'll see the only counters are for eth0, not the two additional aliases.
In order to monitor the other two you'll probably have to use some sort of
IP accounting package. I can recommend IPFM (IP Flow Meter) since I've
written a couple of bandwidth acounting systems using it, but I've necer
used MRTG to query it. I can't see it being too tricky, though.
http://www.via.ecp.fr/~tibob/ipfm/
HTH
Graeme