> > > -----Original Message----- > > From: Chris Haulmark [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 26, 2007 5:44 PM > > To: Cipriani, Robert C; [email protected] > > Subject: RE: [Nagios-users] CFG_DIR recursive feature.. > > > > > > > > > > > > Yep. > > > > > > > > > > I could see that it did not include the deeper config files. > > > > > > > > Excuse me: > > > > > > > > I'm using nagios-3.0.b7 on FreeBSD 6.2. > > > > > > > > Here are the sample lines that I pasted from the nagios.cfg. > > > > > > > > cfg_dir=svchosts.FBSD03/ > > > > cfg_dir=svchosts.FBSD03/clients > > > > cfg_dir=svchosts.FBSD03/servers > > > > cfg_dir=svchosts.FBSD03/networks > > > > > > > > I commented out the last 3 lines and did nagios -v on the > > nagios.cfg. > > > > > > > > It errors with no hosts and services defined. > > > > > > > > When I removed the comments from those last 3 lines and redid the > > > > nagios -v on the nagios.cfg....it did not error. > > > > > > > > Chris > > > > [...snip....] > > > > > > > > > > > > > > Hmm...maybe try dropping the trailing slash? I know this worked for > me > > > on 3.0.b6. I'm setting up 3.0.rc1 on a new box now, will test. > > > > > > > > > > I tried either: > > > > cfg_dir=svchosts.FBSD03 > > cfg_dir=/usr/local/etc/nagios/svchosts.FBSD03 > > > > Both were still giving errors as long as the last 3 lines, that I > > mentioned > > in my previous email, were commented out. > > > > Chris > > > > > > > > Chris, > > Any luck yet? It works for me with 3.0rc1. Maybe try without the . > character (a long shot...I haven't looked at the source code...that > shouldn't cause a problem but it's worth a try). > >
No luck. I tried to change the . to - (dash): ### NAGIOS2 ### cfg_dir=svchosts-NAGIOS2/ #cfg_dir=svchosts-NAGIOS2/clients #cfg_dir=svchosts-NAGIOS2/servers #cfg_dir=svchosts-NAGIOS2/networks I also upgraded nagios-devel to RC1. It has failed. I could not enable the debugging level to show the startup stats when the config files are getting loaded. I got someone else to look thru the source for me. Any new insights are welcome. Chris > > > Robert C. Cipriani > Senior Network Administrator > Tampa Bay Division IT > Bright House Networks > W: (727) 329-2000 x74264 > M: (727) 365-1231 > > > > CONFIDENTIALITY NOTICE: This e-mail may contain information that is > privileged, confidential or otherwise protected from disclosure. If you > are not the intended recipient of this e-mail, please notify the sender > immediately by return e-mail, purge it and do not disseminate or copy > it. > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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
