Re: [Nagios-devel] cfg_dir recursion not working

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] cfg_dir recursion not working

Post by Guest »

Dr. Dave Blunt wrote:
> I have an install with a number of Nagios configs files stored under
> subdirectories:
>
> /usr/local/nagios/etc/rps//acfgfile
> /usr/local/nagios/etc/rps//anothercfgfile
> /usr/local/nagios/etc/rps//yetanothercfgfile
> .
> .

I suppose the files all match the glob(3) pattern
/usr/local/nagios/etc/rps/*/*.cfg
Otherwise, that's possibly the issue right there.

> .
>
> There are no valid cfg files in /usr/local/nagios/etc/rps. All services and
> hosts are defined in the cfg files under , , etc.
>
> When I define:
>
> cfg_dir=/usr/local/nagios/etc/rps
>
> in nagios.cfg the preflight check comes back with errors saying it can't
> find any hosts or services.
>


Are you running this on a Solaris or AIX platform? I think recursion
only works on system that has the header file, and that one
isn't present on all unices.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Lead Developer





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