[mrtg] (silly) include question

Lyle Giese lyle at lcrcomputer.net
Mon Nov 1 21:55:42 CET 2010


Steve,
I could be way off, but isn't this one of those things that changes to
whatever it's set to last? In other worlds as MRTG parses the config
files and include files one at a time, it uses the last 'set' for
WorkDir as it traverses the files and polls network elements.

So that in your master mrtg.cfg file, you set WorkDir to
/home/httpd/html/mrtg, it stays to that setting until mrtg trips over an
include file that sets the WorkDir to something else(say
/home/httpd/html/mrtg/new_router) and continues to use that value
until/unless it's changed.

Lyle Giese
LCR Computer Services, Inc.

Steve Shipway wrote:
>> in an MRTG conf file, shouldn't "WorkDir" be inherited in included files
>> (if there's no "WorkDir" in these included files)?
>>     
>
> Err, I think it *is*, isn't it?  In fact, I set WorkDir in an included file, and it applies to everything.
>
> STeve
>
>
>
> Steve Shipway
> University of Auckland ITS
> UNIX Systems Design Lead
> s.shipway at auckland.ac.nz
> Ph: +64 9 373 7599 ext 86487
>
>
>
>
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20101101/f359bd46/attachment.htm 


More information about the mrtg mailing list