Fw: Re: Multiple templates in a servicedefinition?

Tom DE BLENDE tdeblend at gcc.dhl.com
Wed Jan 8 09:01:16 CET 2003


Well, while we are at the template feature exploring, I've got another
question. Can Nagios add up directive definitions? What I mean is
this:

Our Nagios box is hooked up to the Cisco Catalyst in our server room.
Since each and every host that Nagios needs to check passes through
that Catalyst, it makes that a parent of all hosts. So I can create a
genereic host defintion that has:

define host{
        name                            generic-host
	parents                         catalyst-server-room
        register                        0
        }

However. We are monitoring devices that have to pass through other
Catalysts before they reach the one in the server room. Is it then
possible to create a host:

define host{
        host_name                            hostname
	use 				generic-host
	parents                         catalyst-first-floor
        }

And will this host then have two parent hosts? Are templates that
flexible?



Thinlayer wrote:
> 
> > I forgot the list, duhhh.
> damn you - would have saved me typing my tuppeny bits worth :)
> here's some more anyway (edited to avoid gratuitous repition)
> 
> > I do something similar, but it's a slightly different mind set
> >
> > template A
> >
> > template B, uses A
> >
> > service X, uses template B
> >
> > Same behavior, different method.  I don't know if your way even works....
> AFAIK you can't use more than one other than via inheritance as Donavan
> says but remember not to register your templates and also that the
> templates cannot be used as services.
> 
> You can of course take it further if you require different types of say
> ping buy making your generic-ping a service.
> This means you'll need to define:
> 
> generic-service         : top level template
> generic-ping            : uses generic-service - also a template
> 
> some-special-ping       : uses generic-ping - actual service
> other-special-ping      : uses generic-ping - actual service
> etc.
> 
> hope this helps too
> rue
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users

-- 
Tom De Blende
Senior NT Infrastructure Analyst (Frango)
DHL Global Coordination Center - IT Department
Tel +32 2 713 42 62        
Fax +32 2 713 52 00


-------------------------------------------------------
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