I have configured MRTG for bandwidth monitoring, and seems to work, now, how can i configure MRTG to monitoring IP aliases? I mean with ifconfig:
eth0
eth0:1
eth0:2
eth0:1 and eth0:2 are aliases
For the real phisic interface /etc/mrtg.cfg is as follow:
Target[localhost_eth0]: #eth0 public@localhost
SetEnv[localhost_eth0]: MRTG_INT_IP="xxx.xxx.xxx.xxx" MRTG_INT_DESCR="eth0"
MaxBytes[localhost_eth0]: 1250000
Title[localhost_eth0]: Traffic Analysis for eth0
PageTop[localhost_eth0]: Traffic Analysis for eth0
For IP aliases do I just need to configure as follows
Target[localhost_eth0:1]: #eth0:1 public@localhost
SetEnv[localhost_eth0:1]: MRTG_INT_IP="xxx.xxx.xxx.xxx" MRTG_INT_DESCR="eth0:1"
MaxBytes[localhost_eth0:1]: 1250000
Title[localhost_eth0:1]: Traffic Analysis for eth0:1
PageTop[localhost_eth0:1]: <h1>Traffic Analysis for eth0:1</h1>
Thanx in advance