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?
template inheritance
Re: template inheritance
Please, review the documentation on object inheritance here (mainly "Canceling/Additive Inheritance of String Values"):Please help me understand the functionality of the "+" "null" and "standard" options...
http://nagios.sourceforge.net/docs/3_0/ ... tance.html
Have you tried doing the same thing in the Legacy CCM? Are you observing the same behavior in the Legacy CCM?When I select "+" or "null", apply the configuration, and then return I find "standard" is selected again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: template inheritance
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.
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.
Re: template inheritance
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!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: template inheritance
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.