[mrtg] Re: Multiple WorkDir in One Config?

Waltman, Adam AWaltman at anacomp.com
Mon Oct 29 21:59:49 MET 2001


That is exactly right.  I do this for 30 customers' routers.  I have one
config file that handles everything.

Adam

-----Original Message-----
From: Steve Rowe [mailto:steve.rowe at sheridanc.on.ca]
Sent: Monday, October 29, 2001 3:57 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Multiple WorkDir in One Config?



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