|
From: Andreas E. <ae...@op...> - 2005-05-17 07:34:42
|
Ste...@Mi... 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 and...@op... OP5 AB www.op5.se Lead Developer |