[mrtg] Re: regarding LogDir and pre21

Tobias Oetiker oetiker at ee.ethz.ch
Mon Aug 21 17:00:27 MEST 2000


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

*> 
*> Is the old behaviour of storing all the stuff belonging to arparticular
*> target in one directory, obsoleted? To me, it seems like this is the case:
*> 
*> MRTG_lib::cfgcheck()
*> ....
*>     if (defined $$cfg{workdir}) {
*>         ensureSL(\$$cfg{workdir});
*>         $$cfg{logdir}=$$cfg{htmldir}=$$cfg{imagedir}=$$cfg{workdir};
*> ...
*> 
*> MRTG_lib::log2rrd()
*> ...
*>     open R, "<$$cfg{logdir}$router.log" or
*>       die "ERROR: opening $$cfg{logdir}$router.log: $!";
*> ...
*> 
*> 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:
*> 
*> MRTG_lib::cfgcheck()
*> ...
*>     $SNMP_util::CacheFile = "$$cfg{'logdir'}oid-mib-cache.txt";
*> ...
*> 
*> This one is is obviously a bug, but are the log-file code also a mis-
*> take? In other words, should I fix this or work around it? :)

if you just define WorkDir then all should work as it used to ...
no bug no problem ... 



cheers
tobi
*> 
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) 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