[mrtg] Re: Multiple WorkDir

Brander, Eric Eric.Brander at ACS-INC.com
Mon Jun 9 18:43:46 MEST 2003

> -----Original Message-----
> From: George Georgiou [mailto:george at spidernet.net]
> Subject: [mrtg] Multiple WorkDir

> Can i setup multiple WorkDirs within a .cfg file?

I think so.  Config files are read from top to bottom, so each subsequent
WorkDir setting will override the previous.  Its probably not the best way
to do it though.  Check out the Directory[] option, I think you might be
happy with it.  It will use a directory (whatever you name it) one level
below the WorkDir, or if you use LogDir, ImageDir, etc, it will put it one
level below there.  Great for keeping your files and directories "clean".
Here is what I use:

### Global Config Options

HtmlDir: \mrtg\www
ImageDir: \mrtg\images
IconDir: \mrtg\images
LogDir: \mrtg\log
ThreshDir: \mrtg\thresh

### Global Defaults

WithPeak[_]: dwmy
Background[_]: #FFFFE8
ThreshProgO[_]: \mrtg\thresh\NotifyError.Bat
ThreshProgOKO[_]: \mrtg\thresh\NotifyOK.Bat

Directory[_]: MyServer1

That will creat a MyServer1 folder (and associated files) under \mrtg\www,
\mrtg\images, and \mrtg\log.  If you use WorkDir, then there will be one
folder under the specified WorkDir and all the logs, images and html will be
put there.



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