Error: Cannot open config file '/usr/local/nagios/etc/hosts.cfg'
Andreas Ericsson
ae at op5.se
Tue May 17 09:34:33 CEST 2005
Steve_Schryburt at Mitel.COM wrote:
> The cfg_dir directive doesn't work on HP-UX 11.11.
>
Can you try the getnagioscfg.c program at http://oss.op5.se/nagios? If
that picks up everything OK, I'll know how to patch it in Nagios.
Just download it, compile (gcc getnagioscfg.c -o getnagioscfg) and run
like so;
./getnagioscfg /usr/local/etc/nagios.cfg
If it prints the configuration files that you expect nagios to parse it
will be fairly simple to make the necessary changes to the nagios core.
> I ran the same test on Solaris 8 (with same configuration files), works no
> problem.
>
Solaris 8 has the DIRENT_D type which is a pre-requisite for Nagios to
be able to scan directories. getnagioscfg.c uses the st_mode from struct
stat so it may work where nagios fails.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list