Page 1 of 1
Host template not applying to additional onboarded hosts
Posted: Wed Aug 26, 2020 9:01 am
by mrjsokol
When making a host template and then applying the host template changes to the new host, the host settings would not change? Is this the intended use of the host template? If not, how would I do an application of host settings to multiples hosts?
Re: Host template not applying to additional onboarded hosts
Posted: Thu Aug 27, 2020 9:58 am
by jbrunkow
Yes, I believe that changes made to a host template should also be made to the objects using that template.
Code: Select all
locally defined variables override variables that would normally be inherited from a template object
However, some variables override others. To see exactly what is happening, I may have to take a look at your entire configuration.
You may want to take a close look at our document about inheritance for a more detailed explanation of how this works.
Object Inheritance With Templates
If you want me to take a look at your configuration, then please send me your system profile. You can download the profile by navigating to
System Profile under
System Config on the left pane > and clicking the
Download Profile button on that page.
Re: Host template not applying to additional onboarded hosts
Posted: Mon Aug 31, 2020 8:44 am
by mrjsokol
I had pm'ed you the profile but wasnt able to post to this post at the same time. Were you able to get it ?
Re: Host template not applying to additional onboarded hosts
Posted: Tue Sep 01, 2020 2:19 pm
by jbrunkow
Yes, I received the profile. Thank you for sending that.
Which host are you trying to apply the template to?
I see from your configuration that you are using the Wizards to set this up. It is possible that the template from the Wizard is overwriting the other one that you want to apply. One way to get around this would be to use the
Bulk Modification Tool instead. The other way would be to change the
precedence of the templates so that the correct attributes are applied to the object.
Bulk Modification Tool
Re: Host template not applying to additional onboarded hosts
Posted: Thu Sep 03, 2020 10:05 am
by mrjsokol
Hello,
I was applying a modified version of passive to Lab 03 but did not take the additional settings inside the host itself. The bulk modification tools is available to the enterprise version of XI only and do not have access to that. Should applying a host template to a host change the settings within a host?
Re: Host template not applying to additional onboarded hosts
Posted: Fri Sep 04, 2020 10:43 am
by jbrunkow
Yes, hosts inherit configuration from the templates applied to them. The document linked below explains exactly how this relationship works.
Object Inheritance With Templates
Another thing to keep in mind is that some configurations take precedence over others, meaning that some can overrule or overwrite others. That may be the source of our confusion here. Keep in mind that the Wizard applies its own template, and settings can be overwritten by local ones.
Have a look in the following folder to see exactly how the configuration exists in
XI.
Once the new configuration has been applied, the objects.cache file will show the final settings from the templates. This is helpful for troubleshooting.
Code: Select all
/usr/local/nagios/var/objects.cache