I've got a configfile that has some dynamic parameters which I edit through cfengine, the file involves
monitorring parameters that can differ per system, patch level, management dispostion, etc.:
e.g. not all directories are mounted on the same disk and not all directories are mountpoints.
Our approach is to keep the parameters as generic as possible and changing the input on the
system side.
My question:
Why does this work: { /etc/nagios/nrpe.cfg AutoCreate
BeginGroupIfNoLineMatching "##### BEGIN $(EditHeader) $(CVSRev) ####" Append "##### BEGIN $(EditHeader) $(CVSRev) ####" ForEachLineIn '/path/to/diskmonitoring/parameters/created/by/a/module' AppendIfNoLineMatching "ThisLine" EndLoop