Understanding notifications and object inheritance
Posted: Tue Jan 21, 2020 5:06 pm
I am new to nagios, so excuse my ignorance.
I have read this:
https://assets.nagios.com/downloads/nag ... tance.html
My understanding:
- I can use templates to manage the settings for hosts/services allowing me to make small changes that apply to many objects.
- If multiple templates apply to an object and the templates don't have conflicting settings, then the object gets the sum of settings from all templates.
- If multiple templates apply to an object and the templates DO have conflicting settings, then the object resolves the conflict by using the first template (top one listed on the associated templates screen?) that defines the value; except when the value is defined directly on the object which always wins over any template.
- to convert an object from explicit (direct) settings to implicit (template), I have to remove all the settings from the object. perhaps using the bulk modification tool.
Correct me if I am wrong.
My questions:
- If an object or template has the notification option set to "skip" does it get all alert settings from the "upstream" template, or just the notification option ("on/off/skip/null")? Like the interval and the contacts / contact groups that are associated with the alert settings?
- If I have 10 hosts, 7 hosts need to send alerts to Team A, 3 hosts need to sent alerts to Team B, and all 10 hosts need to send alerts to Team C; then I could create a template for each of the three teams and applying the templates as needed to hosts.
Thanks in advance.
I have read this:
https://assets.nagios.com/downloads/nag ... tance.html
My understanding:
- I can use templates to manage the settings for hosts/services allowing me to make small changes that apply to many objects.
- If multiple templates apply to an object and the templates don't have conflicting settings, then the object gets the sum of settings from all templates.
- If multiple templates apply to an object and the templates DO have conflicting settings, then the object resolves the conflict by using the first template (top one listed on the associated templates screen?) that defines the value; except when the value is defined directly on the object which always wins over any template.
- to convert an object from explicit (direct) settings to implicit (template), I have to remove all the settings from the object. perhaps using the bulk modification tool.
Correct me if I am wrong.
My questions:
- If an object or template has the notification option set to "skip" does it get all alert settings from the "upstream" template, or just the notification option ("on/off/skip/null")? Like the interval and the contacts / contact groups that are associated with the alert settings?
- If I have 10 hosts, 7 hosts need to send alerts to Team A, 3 hosts need to sent alerts to Team B, and all 10 hosts need to send alerts to Team C; then I could create a template for each of the three teams and applying the templates as needed to hosts.
Thanks in advance.