I use multiple .cfg files as well and I use Mr Daemon to kick them off at
different times to even up the load on the processor (Win2K system).  Mr.
Daemon can be found at:
http://www.geocities.com/mrtg_daemon/Main.html

The biggest advantage of using Mr. Daemon is that you don't have to stop and
restart wperl every time you make a change.  Mr. Daemon provides 4 different
timers that can be started at different times with the same period or they
can have different periods.  Now, whenever I make a cfg change all I have to
do is save the .cfg file and the next cycle uses the new .cfg data.

Will

-----Original Message-----
From: PAUL WILLIAMSON [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 01, 2003 7:00 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [mrtg] Re: Work dirs..


Yes it is possible.  It is even possible to have 
different MRTGs running at different intervals with 
separate configs.  You just need to tell MRTG what 
config to use.

One problem I see with the way Brett does it is that 
if you put anything other than WorkDir (like IconDir), 
you need all the special Dir directives.  Having 
WorkDir overrides everything else.  

I do a little of both.  I have a few MRTGs running, 
each with a separate config.  Most are built with 
included files, which makes administration a TON 
easier.

Paul

>>> Brett Marler <[EMAIL PROTECTED]> 02/28/03 23:02 PM >>>

> Is it possible to have two working  dirs and two mrtg.cfg file, both being
> active?? The reason being I don't want to add too many ip address into one
> file.
I find the easiest way to maintain my setup is to have a very basic and
short 
mrtg.cfg (defining WorkDir and a few other options) and then have seperate
configuration files for different hosts/routers and use the "Include" global

parameter. So my mrtg.cfg looks like:

--
WorkDir: /var/www/html/mrtg/
IconDir: /var/www/html/mrtg/
Refresh: 300
Include: /usr/local/mrtg-2.9.25/mrtg-rrd-host1.cfg
Include: /usr/local/mrtg-2.9.25/mrtg-rrd-host2.cfg
Include: /usr/local/mrtg-2.9.25/mrtg-rrd-host3.cfg
Include: /usr/local/mrtg-2.9.25/mrtg-rrd-router1.cfg
Options[_]: bits,growright
RunAsDaemon: Yes
PathAdd: /usr/local/rrdtool-1.0.39/bin/
LibAdd: /usr/local/rrdtool-1.0.39/lib/perl/
LogFormat: rrdtool
--

Then I use "14all.cgi" to view the different configuration files. Very
simple to setup and once setup, requires no further administering.

Oh, almost forgot, you can only define 1 WorkDir (as its a global parameter)
but you can specify different directories for the files). It's all outlined
in the manual.


Regards.
-- 
Brett Marler <[EMAIL PROTECTED]>
WWW:    http://asroma.homeip.net/




-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


--
Unsubscribe mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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

Reply via email to