[EMAIL PROTECTED] wrote: > > Here is the problem, adding a cfg_dir to point to a _Unix_ directory > like so > > *************** > *** 78,83 **** > --- 78,87 ---- > # extension) in a particular directory by using the cfg_dir > # directive as shown below: > > + cfg_dir=/etc/nagios > + > + # cfg_dir=/mnt/dest_smb/coms/NMS/nagios > + > #cfg_dir=/etc/nagios/servers > #cfg_dir=/etc/nagios/printers > #cfg_dir=/etc/nagios/switches > [EMAIL PROTECTED] nagios]# >
Try if http://oss.op5.se/nagios/getnagioscfg.c lists the file you expect it to and then get back to me. I think the current cfg_dir handling code is conditional to having (struct dirent *)->d_type on your system, so perhaps that's the issue. It should work equally well with just plain old stat() instead, and would be much more portable. Performance issues can probably be ignored, since most users don't have >50k config files. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list [email protected] 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
