Contact Template Not Working?
Paul L. Allen
pla at softflare.com
Mon Apr 19 23:41:30 CEST 2004
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...
> "Remember, locally defined variables override variables that would
> normally be inherited from a template object." The only question in my
> mind was whether you could have a host_name definition in a template and
> override that with a local host_name definition or contact_name in a
> template and override with a locate contact_name in a contact definition
> as a more pertinent example.
I have never had that work, and I wasn't trying to over-ride things like
host_name or contact_name. I tried it several times, it didn't work for
me, I gave up on it. I must have been doing something silly, but it was
so long ago I can't figure out what I might have been doing wrong.
Tomorrow, providing things are relatively quiet, I shall give it another
try.
> 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.
--
Paul Allen
Softflare Support
-------------------------------------------------------
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_id=1470&alloc_id=3638&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