[mrtg] MRTG include directive.

Steve Shipway s.shipway at auckland.ac.nz
Thu Sep 13 05:09:25 CEST 2007

> I have a MASTER.cfg file which has many include directives to other
> .cfg files.

Great.  This is probably the best way to do it.

> However if a .cfg file in the include list does not exist MRTG
> startup will fail.

Yes, it does.

> Is there a way to configure MRTG to ignore/bypass non-existant
> include .cfg files ? and/or is there a way to use a wildcard on the
> include directive (rather than add a specific include directive for
> each .cfg file) ?

Not yet.  It would be nice if we could do 'Include: subdir/*.cfg' but
currently MRTG does not support it (as far as I know.  Tobi may have
brought out an update).

Note that if you're using routers2, then that doesn't support wildcard
includes either, not that it would matter in this case.


More information about the mrtg mailing list