template inheritance

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nveeder
Posts: 20
Joined: Fri Feb 01, 2013 2:54 pm

template inheritance

Post by nveeder »

Nagios XI 2012R1.6

Please help me understand the functionality of the "+" "null" and "standard" options or otherwise how to selectively add to or override settings from templates. When I select "+" or "null", apply the configuration, and then return I find "standard" is selected again.
Example:
A host template defines contacts as "contact 1" and "contact 2". This template is specified for a list of hosts that have no contacts set under Alert Settings > Manage Contacts allowing "contact 1" and "contact 2" to be inherited from the template.
For some specific hosts we need to override the two contacts inherited from the template and only send notifications to "contact 3". That is what to expect if I add "contact 3" to a specific host config and leave the default radio button option of "standard" selected, correct?
Other specific hosts require notifications to go to "contact 3" in addition to the two contacts being inherited from the template. My guess would be that for such a host under Alert Settings > Manage Contacts I can mark the option "+" and then add "contact 3" as the one listing under Assigned. Should the "+" option be used for specifying an additional contact to those being inherited from the template?
After applying this change successfully, I return to the host config > Alert Settings > Manage Contacts. I find the Assigned column still shows "contact 3", however the "+" radio button is no longer marked and "standard" is marked instead. Which contacts should I expect these hosts notifications to go to? What is the purpose of the "+" or "null" options here and how do I get them to save?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: template inheritance

Post by lmiltchev »

Please help me understand the functionality of the "+" "null" and "standard" options...
Please, review the documentation on object inheritance here (mainly "Canceling/Additive Inheritance of String Values"):

http://nagios.sourceforge.net/docs/3_0/ ... tance.html
When I select "+" or "null", apply the configuration, and then return I find "standard" is selected again.
Have you tried doing the same thing in the Legacy CCM? Are you observing the same behavior in the Legacy CCM?
Be sure to check out our Knowledgebase for helpful articles and solutions!
nveeder
Posts: 20
Joined: Fri Feb 01, 2013 2:54 pm

Re: template inheritance

Post by nveeder »

Thanks for the documentation link.
Using the Legacy CCM allowed saving the additive option successfully for a host contact. I can also now see the option is selected when I return to CCM 1.03, so the bug seems to be with saving the additive or null options and not with displaying them.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: template inheritance

Post by lmiltchev »

I'm glad you were able to make the changes in the Legacy CCM. What version of Nagios XI are you running? I believe we had this bug in the older versions of XI. This should be fixed in the latest one.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nveeder
Posts: 20
Joined: Fri Feb 01, 2013 2:54 pm

Re: template inheritance

Post by nveeder »

Nagios XI 2012R1.6
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: template inheritance

Post by sreinhardt »

I can confirm what you are seeing, and will discuss with our devs to see what the issue may be. Alternatively, you can submit a bug to tracker.nagios.com so that you can more directly follow progress with it.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked