MRTG, and FreeBSD rl0 aliases
Matt Rechkemmer
tiberius at trancell.org
Sun Mar 27 02:03:55 PST 2005
This little problem has been bothering me for sometime. I'm trying to do a
MRTG setup on my 5.3 system. The ISP I colocate with has allocated me a /29
in public space. Let's say for e-mail purposes, I've been given
192.168.0.29/29. Here are two entries from my mrtg.cfg:
Target[localhost_192.168.0.30]: /192.168.0.30:hybrid at localhost
SetEnv[localhost_192.168.0.30]: MRTG_INT_IP="192.168.0.30"
MRTG_INT_DESCR="rl0"
MaxBytes[localhost_192.168.0.30]: 1250000
Title[localhost_192.168.0.30]: 192.168.0.30
PageTop[localhost_192.168.0.30]: <H1>192.168.0.30</H1>
<TABLE>
<TR><TD>System:</TD> <TD>Hybrid</TD></TR>
<TR><TD>Maintainer:</TD> <TD>captkirk at localhost</TD></TR>
<TR><TD>IP:</TD> <TD>192.168.0.30</TD></TR>
</TABLE>
Target[localhost_192.168.0.31]: /192.168.0.31:hybrid at localhost
SetEnv[localhost_192.168.0.31]: MRTG_INT_IP="192.168.0.31"
MRTG_INT_DESCR="rl0"
MaxBytes[localhost_192.168.0.31]: 1250000
Title[localhost_192.168.0.31]: 192.168.0.31
PageTop[localhost_192.168.0.31]: <H1>192.168.0.31</H1>
<TABLE>
<TR><TD>System:</TD> <TD>Hybrid</TD></TR>
<TR><TD>Maintainer:</TD> <TD>captkirk at localhost</TD></TR>
<TR><TD>IP:</TD> <TD>192.168.0.31</TD></TR>
</TABLE>
You'd think these would produce two very different graphs, since the other IP
isn't as widely used. The interesting part is, the graphs report the same
incoming/outgoing KBPS.
Thoughts?
P.S. Assuming I get all this fixed, is there a way to aggregate all those
statistic in a separate graph? I tried the + methodology in the target field
and got some unusual results.
More information about the freebsd-questions
mailing list