Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2005 03:02:31 -0700
From:      Matt Rechkemmer <tiberius@trancell.org>
To:        freebsd-questions@freebsd.org
Subject:   MRTG, and FreeBSD rl0 aliases
Message-ID:  <20050327100231.GA29685@sdf.lonestar.org>

next in thread | raw e-mail | index | archive | help
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@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@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@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050327100231.GA29685>