[mrtg] Re: Command

David Sawyer david.sawyer at uk.mckhboc.com
Thu Jun 7 17:59:14 MEST 2001

Why not just do...
cfgmaker public at >test1.cfg
cfgmaker public at >>test1.cfg

That will append the routers script to the test1.cfg file, that's
assuming your using MRTG on a Windows box
If you are using Windows why not check out my Daemon at

Or do what I do.

Create a global script called "mainscript.cfg" and use the "include:"
command to include your device specific scripts.
If you have a lot of scripts, you can control them better that way.

# -- Start of Mainscript.cfg
# global stuff
Options[_]: unknaszero, bits
WithPeak[_]: y
Unscaled[_]: dwmy
WorkDir: e:\
IconDir: ./
XSize[_]: 600

# Include files
Include: test1.cfg
Include: test2.cfg
# -- End of Mainscript.cfg
# -- Start of test1.cfg
Target[test1]: \Serial0:public at
Directory[test1]: HWood
MaxBytes[test1]: 8000
Title[test1]: Traffic Analysis for test1 Serial0
PageTop[test1]: <H1>Traffic Analysis for test1 Serial0</H1>
   <TR><TD>System:</TD>     <TD>test1</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>64KBits/s</TD></TR>
# -- End of test1.cfg
# -- Start of test2.cfg
Target[test2]: \Serial0:public at
Directory[test2]: HWood
MaxBytes[test2]: 8000
Title[test2]: Traffic Analysis for test2 Serial0
PageTop[test2]: <H1>Traffic Analysis for test2 Serial0</H1>
   <TR><TD>System:</TD>     <TD>test2</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>64KBits/s</TD></TR>
# -- End of test2.cfg


> -----Original Message-----
> From:	Hans Peter Schoepf [SMTP:pety at dnet.it]
> Sent:	Thursday, June 07, 2001 4:33 PM
> To:	Richard TS; MRTG Mailing List (E-mail)
> Subject:	[mrtg] Re: Command
> Hi
> You can make one file.
> Run the cfgmaker for the two different routers and then chose one of them
> as 
> primary file and you put the target from the other file in the primary
<-- SNIP -->

> Thats all
> Bye Peter
> Am Donnerstag,  7. Juni 2001 13:19 schrieb Richard TS:
> > Friends,
> > I have just make an mrtg.cfg for a router with IP and SNMP
> > community public When I create a with command cfgmaker public at
> > mrtg.cfg , I have 4 graphic with the same target public at My
> router
> > connect only to an WAN interface and a Fast Ethernet
> > I have another router with public at and the two router connect to
> > hub.
> >
> > How can I make one mrtg.cfg file which make the two target ...
> > Or can I use this command
> >
> > #cfgmaker public at public at >> mrtg.cfg
The information contained in this e-mail is confidential and is intended
only for the named recipient(s). If you are not the intended recipient you
must not copy, distribute, or take any action or reliance on it.
If you have received this e-mail in error, please notify the sender.
Any unauthorised disclosure of the information contained in this e-mail
is strictly prohibited.

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