Web Hosting Talk







View Full Version : monitoring bandwidth on aliased IP's


goodness0001
08-15-2004, 08:14 PM
is it possible to configure mrtg to graph traffic on aliased ip addresses?

Such as

eth0:1
eth0:2

etc

goodness0001
08-22-2004, 07:14 PM
any suggestions?

RutRow
08-22-2004, 07:29 PM
You could use iptables to keep track of the counters for you, then use a shell script to extract the data every 5 minutes.

racksense
08-23-2004, 07:20 AM
You may be able to collect stats for vifs, it depends if the Linux kernel maintains separate counters for each vif.

Install the UCD snmp tools (you'll need them for MRTG anyway) and then do an 'snmpwalk hostname public interfaces' and have a look at the results.

RutRow
08-23-2004, 09:22 AM
Originally posted by Paul-Xensia
Install the UCD snmp tools (you'll need them for MRTG anyway)

You don't *HAVE* to install SNMP to make MRTG work. There are other means for MRTG to collect data (very simple ones actually). In fact I would recommend against installing an additional service just for MRTG if you are only querying your local machine.

racksense
08-23-2004, 09:48 AM
That's true.

For some reason I had it in my mind that MRTG uses the UCD SNMP libs, but I was wrong, it has its own.

goodness0001
08-23-2004, 08:00 PM
I have mrtg installed, but it reports on eth0 itself, but not any aliased IP's.