> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Chris Haulmark > Sent: Wednesday, December 26, 2007 3:26 PM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] CFG_DIR recursive feature.. > > > > > > > > > > > I thought it already did this. Are you using 3.x? > > > > > > > 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 > > > > > Chris > > > > > > > > > > > Robert C. Cipriani > > > Senior Network Administrator > > > Tampa Bay Division IT > > > Bright House Networks > > > W: (727) 329-2000 x74264 > > > M: (727) 365-1231 > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] [mailto:nagios- > > > users- > > > > [EMAIL PROTECTED] On Behalf Of Chris Haulmark > > > > Sent: Wednesday, December 26, 2007 3:04 PM > > > > To: nagios-users@lists.sourceforge.net > > > > Subject: [Nagios-users] CFG_DIR recursive feature.. > > > > > > > > In the /usr/local/etc/nagios/nagios.cfg of the master nagios > server > > > > in the distributed model, there are a line of: > > > > > > > > cfg_dir=/usr/local/etc/nagios/slaves/ > > > > > > > > There those directories: > > > > > > > > /usr/local/etc/nagios/slaves/ > > > > ..../nagios1 > > > > ..../nagios2 > > > > ..../nagios3 > > > > > > > > In each of the directories, there are services/hosts cfg files for > > > > each nagios slave. > > > > > > > > What I am trying to accomplish is for the master nagios server's > > > > nagios.cfg to include all those slaves' directories with a single > > > > line. > > > > > > > > Is there a way to include several directories recursively? > > > > > > > > Chris > > > > > > > > > > --------------------------------------------------------------------- > > > ---- > > > > 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 > > > > Nagios-users@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 > > > > > > 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 > > > Nagios-users@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 > > > > > ----------------------------------------------------------------------- > > -- > > 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 > > Nagios-users@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 > > ------------------------------------------------------------------------- > 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 > Nagios-users@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
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. 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 Nagios-users@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