Templates Flashcards
What is a template?
A template is a set of entities that can be applied to multiple hosts.
Where are templates linked?
Templates are linked to individual hosts directly and not linked to host groups.
Templates belong to at least one host group for logical grouping.
In what way can templates be linked to hosts?
Using Automatic lookup field or list selector.
What happens if a host has an entity applied and then a template is linked with that entity?
If an entity already exists on a host, linking will keep the historic data.
What happens when a template is unlinked?
The linkage will be removed between the items and the templates but the items will remain on the host.
How do you remove a template and delete the items from the host?
Using the unlink and clear option will remove the linkage and delete the data.
What is not inherited when applying tags at a template level?
Template tags are not inherited by a hosts own entities:
* Template tags will be inherited only by items and triggers linked from the template.
* Host tags will be inherited by all items and triggers on the host (including templated)
What happens when a template is deleted?
Not delete and clear
The template is deleted but the items/entities will be left on the linked host.
What is the difference between clone and full clone of a template or host?
A clone will retain all parameters and template linked whereas a full clone will retain parameters, template linkage and local entities.
Do global macros override template and host level macros?
No, template and host level macros are processed first according to the following precedence:
- host level macros (checked first)
- macros defined for first level templates of the host (i.e., templates linked directly to the host), sorted by template ID
- macros defined for second level templates of the host, sorted by template ID
- macros defined for third level templates of the host, sorted by template ID, etc.
- global macros (checked last)