Templates Flashcards

1
Q

What is a template?

A

A template is a set of entities that can be applied to multiple hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where are templates linked?

A

Templates are linked to individual hosts directly and not linked to host groups.

Templates belong to at least one host group for logical grouping.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In what way can templates be linked to hosts?

A

Using Automatic lookup field or list selector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What happens if a host has an entity applied and then a template is linked with that entity?

A

If an entity already exists on a host, linking will keep the historic data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens when a template is unlinked?

A

The linkage will be removed between the items and the templates but the items will remain on the host.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you remove a template and delete the items from the host?

A

Using the unlink and clear option will remove the linkage and delete the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is not inherited when applying tags at a template level?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens when a template is deleted?

Not delete and clear

A

The template is deleted but the items/entities will be left on the linked host.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between clone and full clone of a template or host?

A

A clone will retain all parameters and template linked whereas a full clone will retain parameters, template linkage and local entities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Do global macros override template and host level macros?

A

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)

User macros

How well did you know this?
1
Not at all
2
3
4
5
Perfectly