[mrtg] (silly) include question

Tobias Oetiker tobi at oetiker.ch
Mon Nov 1 22:25:44 CET 2010


Today Lyle Giese wrote:

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

as far as I know workdir is global ... whatever value is set last
will be what is active at runtime ...

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

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the mrtg mailing list