[mrtg] Re: Multiple WorkDir in One Config?

Paul C. Williamson pwilliamson at mandtbank.com
Mon Oct 29 22:05:44 MET 2001


Steve,

You beat me to the punch.  I was just typing this same thing in when 
I saw your reply.  

Jim - You can probably just take out the "header" information, put it 
into a master file, then just do include statments.  Put the Directory[_]: directive in the individual cfgs so that the only things in your master 
config are the global things and the Include: statements.  You may 
want to add comments (# This config includes blah) above each 
config so you don't forget what they do.

Paul

>>> Steve Rowe <steve.rowe at sheridanc.on.ca> 10/29/01 03:57PM >>>

Although I haven't tried it myself, this might work:

Specify a root Working Directory at the top of the .cfg.  Then specify a 
Directory tag with the global option before the section for each device.

WorkDir: /home/httpd/html/mrtg/

Directory[_]: router1
.
. [router1 targets]
.
Directory[_]: router2
.
. [router2 tragets]
.

This should put the router1 targets in the subdirectory "router1".  The 
next Directory[_] tag should modify the subdirectory so that router2 
targets end up in subdirectory "router2".

Does this sound right?

Steve



At 10/29/01 - 03:44 PM, Hunt, Jim wrote:

>I currently have 8 separate config files that use a different directory for
>the generated files.  I would like to combine all the config files into one
>master config file but keep the separate directories.  Is this possible?
>
>Jim
>
>--
>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 

-
/ __|______| _ \___________________________________________________________
\__ \      |   /                       Network Analyst - Data Systems Group
____/TEVE  |_|_\OWE               Information Technology - Sheridan College
                                     Trafalgar Campus - Oakville, ON, Canada
steve.rowe at sheridanc.on.ca                                         ./\.
Phone: 905-845-9430 x2032       ICQ:                            _|\|  |/|_
http://numb.sheridanc.on.ca   14509731                          \        /
_________________________________________________________________>______<__
Make something idiot proof and someone will make a better idiot.    /


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