Contact Template Not Working?

Marc Powell marc at ena.com
Tue Apr 20 00:02:42 CEST 2004


Paul L. Allen <mailto:pla at softflare.com> wrote:
> Marc Powell writes:
> 
> > You can absolutely over-ride template defined variables. From
> > http://nagios.sourceforge.net/docs/1_0/templaterecursion.html
> 
> I thought I'd followed every link in the docs, but I don't remember
> seeing that page.  You've proved me wrong and I'm ecstatic.  Clearly
> I was in error, but now I know it *should* be possible to over-ride
> inheritance.  Now rub salt into the wounds and tell me it's a
> prominent link on every page about Nagios templating...  

You _did_ ask --

http://nagios.sourceforge.net/docs/1_0/xodtemplate.html

"Introduction 

One of the benefits of using the template-based config file format is
that you can create object definitions that have some of their
properties inherited from other object definitions. The notion of object
inheritence, along with documentation on how to do it, is described
<here>. I strongly suggest that you familiarize yourself with object
inheritence once you read over the documentation presented below, as
inheritence will make the job of creating and maintaining object
definitions much easier than it otherwise would be. "
  

> > From this thread it appears that is doable, but still questionable
> > as to why one would want to have something that specific in a
> > template in the first place.
> 
> It wouldn't occur to me as something to try, but if inheritence
> worked for me then I'd expect something like that to work too because
> to make it not work would require special-case handlers in the code.  

I concur.

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list