[mrtg] Re: Manually adding entries to mrtg.cfg

Randall J. Fleischmann randallf at speakeasy.org
Tue Dec 19 03:54:46 MET 2000


Why don't you run cfgmaker against the router and pipe the output to a file
other than mrtg.cfg.  Then you could just cut and paste the part of the cfg
that refers to the new interface into your existing mrtg.cfg

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of John Giordano
Sent: Monday, December 18, 2000 5:25 PM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] Manually adding entries to mrtg.cfg




Hello List,

I can run cfgmaker against our routers everytime and it always builds us a
good mrtg.cfg file.

The problem we have been running into tho is that when a new interface is
added I can't add an entry manually and get it to work.

I don't want to have to rebuild the list each time with cfgmaker because
then I have to manually go in with a text editor and add things like how
fast each subinterface is, etc.

Here is an example of what I mean:

#---------------------------------------------------------------

Target[216.251.100.253.4]: 4:foo at 216.251.100.253
MaxBytes[216.251.100.253.4]: 193000
Options[216.251.100.253.4]: bits
Title[216.251.100.253.4]: Kilimanjaro (No hostname defined for IP address):
Serial0.16
PageTop[216.251.100.253.4]: <H1>Traffic Analysis for Serial0.16
 <BR>Wayne Berry</H1>
 <TABLE>
   <TR><TD>System:</TD><TD>Kilimanjaro in </TD></TR>
   <TR><TD>Maintainer:</TD><TD></TD></TR>
   <TR><TD>Interface:</TD><TD>Serial0.16 (4)</TD></TR>
   <TR><TD>IP:</TD><TD>No hostname defined for IP address
(206.129.54.25)</TD></TR>
   <TR><TD>Max Speed:</TD>
       <TD>193.0 kBytes/s (frame-relay)</TD></TR>
  </TABLE>

#---------------------------------------------------------------

Target[216.251.100.253.5]: 5:foo at 216.251.100.253
MaxBytes[216.251.100.253.5]: 193000
Title[216.251.100.253.5]: Kilimanjaro (No hostname defined for IP address):
Serial0.29
PageTop[216.251.100.253.5]: <H1>Traffic Analysis for Serial0.29
 <BR>Cornish College</H1>
 <TABLE>
   <TR><TD>System:</TD><TD>Kilimanjaro in </TD></TR>
   <TR><TD>Maintainer:</TD><TD></TD></TR>
   <TR><TD>Interface:</TD><TD>Serial0.29 (5)</TD></TR>
   <TR><TD>IP:</TD><TD>No hostname defined for IP address
(206.129.54.61)</TD></TR>
   <TR><TD>Max Speed:</TD>
       <TD>193.0 kBytes/s (frame-relay)</TD></TR>
  </TABLE>

#---------------------------------------------------------------

This is what cfgmaker makes the first time.  It works great.  But what if a
new frame relay subinterface is built in the router?

I can't do this:

Target[216.251.100.253.6]: 6:foo at 216.251.100.253

because it will not grab the right stuff.  Do I need to use an OID and then
monitor the ip of the new subinterface that is built?

Because the IP (216.251.100.253) above of both entries is the IP of the
ethernet interface on our router.  So if I just do 216.251.100.253.7 and
expect it to graph the new subinterface- it doesn't work.

Any ideas?  Does this even make sense?  ;-)

Thanks,

John


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list