[mrtg] Re: regarding LogDir and pre21

Tobias Oetiker oetiker at ee.ethz.ch
Mon Aug 21 20:25:41 MEST 2000


Today you sent me mail regarding [mrtg] Re: regarding LogDir and pre21:

*> 
*> Tobias Oetiker wrote:
*> > 
*> > *> I plain english: there seems to be no way of storing the log-files in
*> > *> the html-dir, as used to be the default. This also seems to be the case
*> > *> for the MIB-cache:
*> (....)
*> > 
*> > if you just define WorkDir then all should work as it used to ...
*> > no bug no problem ... 
*> 
*> I take this is the intention, however it does not work that way.
*> As far as I can read the code, logdir is set to workdir if the
*> latter is defined. End of story. There is no code appending the
*> directory of the router to the logdir, like in sub writegraphics():
*> 
*> ...
*> my $rrd = "$$cfg{'logdir'}$$rcfg{'directory'}{$router}$router.rrd";
*> ...                       ^^^^^^^^^^^^^^^^^^^
*> 
*> This is not hard to fix (unless I'm mistaken, and this is some
*> error of mine), but the behaviour is not good. In my opinion,
*> log-files (or RRD archives) should be stored in logdir/target.log
*> if LogDir is defined, and workdir/directory/target.log if not.

well at the moment the use of the 'directory' directive causes
everything to be placed in subdirectories of either the workdir or
if you set the logdir imgdir htmldir into subdirectories of these
... where is the problem ?

cheers
tobi
*> 
*> Am I horribly mistaken (could be; I should have left 3 hours ago)?
*> 
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker


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