One(host) to One(contacts) setup

Subhendu Ghosh sghosh at sghosh.org
Wed Jan 8 19:49:19 CET 2003


On 8 Jan 2003, Terry Inzauro wrote:

> Does this mean that data from say the hosts.cfg file can go into a
> generic cfg file that has all contact info.host info, and service info? 
> 
> To put it simple, it is possible to place all configuration information
> in one file as long as it maintains the coorect syntax.

A cfg file can contain any config info - host, service, groups, contact, 
timeperiods... (with correct syntax)

There are 2 special cfg files - nagios.cfg and cgi.cfg which have defined 
filenames and elements.  All other cfg files are by convention (eg 
host.cfg for hosts)

-sg

> 
> 
> Terry
> 
>  
> On Wed, 2003-01-08 at 11:39, Subhendu Ghosh wrote:
> > On 8 Jan 2003, Terry Inzauro wrote:
> > 
> > > This is a 2 part question.
> > > 
> > > 1.  Has anyone found an easier way of setting up a one host to one
> > > contact enviroment for nagios.  It absolutely suck the way it is right
> > > now with the hosts,contact,contactgroup, setup now.  
> > 
> > no :(
> > 
> > > 
> > > 2.  Does Nagios support includes in the config files?  I would like to
> > > create one config file for each host instead of creating one type of
> > > config file for all hosts.  I think this approach would be easier to
> > > manage as well as easier to automate for multiple hosts with the same
> > > characteristics but different contacts for problems.  The one include
> > > file for the individual host would have all the information that would
> > > have been in all the *.cfg files.
> > 
> > instead of cfg_file use cfg_dir in nagios.cfg to include all files in the 
> > sub-directory..
> > 
> > > 
> > > Please put some thought into this one.  Rewards from the naught blonde
> > > female sex gods would be you future:)
> > > 
> > > 
> > > Terry
> > > 
> > > 
> > 
> > -- 

-- 




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list