[mrtg] (silly) include question
lyle at lcrcomputer.net
Mon Nov 1 21:55:42 CET 2010
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.
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 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mrtg