http://nagios.sourceforge.net/docs/3_0/configmain.html#cfg_dir
On Thu, 02 Apr 2009, Renato Krause wrote: > Sorry, i forgot to sendo for the list. > Renato Krause > > > > > ---------- Forwarded message ---------- > From: Renato Krause <renatokra...@gmail.com> > Date: Thu, Apr 2, 2009 at 15:35 > Subject: Re: [Nagios-users] Each switch in a file .cfg > To: Marc Powell <m...@ena.com> > > > Marc, first thank you for help me. I´m creating a script in python to > generate .cfg to my switchs now. Son i will implement you solution. I > only like know how reference a directory with all my switchs files. > Thank for all one more time, > Renato Krause > > > > On Thu, Apr 2, 2009 at 15:13, Marc Powell <m...@ena.com> wrote: > > > > On Apr 2, 2009, at 1:02 PM, Renato Krause wrote: > > > >> I started one job with a NAGIOS at a big network. My first ideia was > >> monitoring all switchs on this network. > >> I put all switch configuration in the file: > >> /usr/local/nagios/etc/objects/switch.cfg > >> I hope that I can create configuration files to each switch, one file > >> per switch, and make a reference to switchs on this file: > >> /usr/local/nagios/etc/nagios.cfg. > > > > Yes, you can, using either cfg_file directives (one per switch cfg > > file), or better yet, one cfg_dir directive pointing to the directory > > with all the switch cfg files. > > > >> In this file i uncomment a line > >> /usr/local/nagios/etc/objects/switch.cfg to make use actual > >> configuration. I tried made a reference to other files, that i had > >> created but the Nagios don´t restarted with other references in > >> /usr/local/nagios/etc/nagios.cfg. > > > > If you're reporting a problem here, it's necessary to include the > > actual error nagios is reporting. You can use '/path/to/nagios -v / > > path/to/nagios.cfg' for more verbose config checking... > > > > -- > > Marc > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > 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 > > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 ------------------------------------------------------------------------------ _______________________________________________ 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