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
.
.
.
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.
Using cfg_dir directives for directories that contain just cfg files works
fine. I looked at both the nagios 2.0b3 and nagios-cvs trees but couldn't
see any changes relating to this in xodtemplate.c - specifically the
xodtemplate_process_config_dir routine.
Dave.
Dr. Dave Blunt
Regional Operations Manager
GroundWork Open Source Solutions
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]