[mrtg] MRTG as Daemon, mrtg.cfg including files, variables overwritten

falz me at falz.net
Fri Apr 27 19:30:44 CEST 2007


On 4/27/07, Daniel J McDonald <dan.mcdonald at austinenergy.com> wrote:
> On Fri, 2007-04-27 at 09:32 -0500, falz wrote:
> > 2) Fix my include syntax and somehow force MRTG to not overwrite the
> > WorkDir variable. Not sure if this is realistic or not, but it seems
> > that the "Include" is documented anywhere that I can see.
>
> Why not put
> Directory[_]: routers
>
> at the top of the routers cfg, and Directory[_]: servers at the top of
> the servers config.  Default directives are applied until supplanted.

Thanks for the tip. I tried it, worked perfectly! The docs for
cfgmaker's directory variables were a bit confusing, I didn't realize
you could use this syntax, which worked perfectly in my case:

cfgmaker [..stuff..] --global Directory[_]: routers [..stuff..]

--falz



More information about the mrtg mailing list