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

George Margiolis george_m at bigpond.net.au
Tue Dec 19 07:48:21 MET 2000


I have also done what Red suggested (individual cfg files), but my script
cats them all together to make a singe cfg file.
Adding params to the script allows me to build cfg for a singe device or a
set of services that I group by "class".
Each time a cfg is created the master cfg for that class is rebuilt ( this
is simply a cat of all of the cfg files in that class).

On my Unix host I run a cron job/class.
This is all driven from a "profile" file that contains things like:device
name, name of output cfg, list of params to use to make cfg etc.
Index maker is then run against each "class".cfg file.

cheers,
georgem

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Garth K. Williams
Sent: Tuesday, 19 December 2000 14:51
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Manually adding entries to mrtg.cfg



I agree with Red!  The only compelling reason I have come across to move to
a single CFG file is that PERL need not be started up separately each time a
file is read.  I notice a 30% (perceived) increase in performance when
monitoring one config file with 5 devices in it over five single config
files.

Of course if you want to DRASTICALY improve performance, move ro RRDTool!

Garth
Garth K. Williams, MCSE, MCP+I, CNA
Williams Technology Consulting Services
Email: garth.williams at wtcs.org
Web: http://www.wtcs.org

Home of the "SNMP for the Public Community" Web Site
Support site for SNMP, Windows 95/98/NT/2000,
NetWare, MRTG and Network Management
URL: http://www.wtcs.org/snmp4tpc
Check out SNMP4NT, an enhanced Windows NT
Performance Monitor MIB (over 35 stats)!!


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



Hi!
I monitor hundreds of Cisco switches and routers with MRTG (Love it BTW!)
I've found that life is vastly simpler if you use a seperate .cfg for each
device. I have files like - Cisco7507_SEA_NOC.cfg I run all the individual
files from a shell script (or a cmd file for NT'ers). With my method
adding/changing a new interface on a single device is easy. Also removing or
replacing a switch etc. doesn't require rebuilding mrtg.cfg (which in my
case would be huge).

Best for the Holidays everybody!

Red Jackson
System Engineer
Cypress Communications Inc.
Seattle WA USA
red at cypresscom.net
red at siteconnect.com

-----Original Message-----
From: John Giordano [mailto:isaac at netos.com]
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
---
Incoming mail is VIRUS FREE!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.215 / Virus Database: 101 - Release Date: 11/16/00

---
Outgoing mail is VIRUS FREE!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.215 / Virus Database: 101 - Release Date: 11/16/00


--
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