cfg_dir recursion not working
Andreas Ericsson
ae at op5.se
Thu Jul 14 00:36:10 CEST 2005
Dr. Dave Blunt wrote:
> I have an install with a number of Nagios configs files stored under
> subdirectories:
>
> /usr/local/nagios/etc/rps/<dir1>/acfgfile
> /usr/local/nagios/etc/rps/<dir2>/anothercfgfile
> /usr/local/nagios/etc/rps/<dir3>/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 <dir1>, <dir2>, <dir3> 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 <dirent.h> header file, and that one
isn't present on all unices.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
More information about the Developers
mailing list