Re: [Nagios-devel] sugested update for location.h.in

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] sugested update for location.h.in

Post by Guest »

On Wed, Oct 13, 2010 at 9:47 PM, Marcel J.E. Mol wrote:
> Hello,
>
> My first post to the list... I just started playing with nagios and doing
> some test developments. For this I need the location of the directory
> where all config files reside. I noticed that all config files are define=
d
> with absolute paths and the config directory itself is not defined.
>
> It like to suggest a change to location.h.in so I can define new config
> files within a single source file without needing to update other nagios
> core files. =A0The patch is attached. It just adds a DEFAULT_CONFIG_DIR
> define to location.h.in.
>

The default value for that macro would cause Nagios to recursively search
all of /etc for files ending with .cfg.

Try the cfg_dir option in nagios.cfg instead. It should do roughly what you
want.

--=20
Andreas Ericsson=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 andreas.ericsson@op5=
.se
OP5 AB=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 www.op5.se
Tel: +46 8-230225=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked