Zabbix Documentation 5.4

Sidebar

2 Templates

Overview

In the Configuration → Templates section users can configure and maintain templates.

A listing of existing templates with their details is displayed.

Displayed data:

Column Description
Name Name of the template. Clicking on the template name opens the template configuration form.
Hosts Number of editable hosts to which the template is linked; read-only hosts are not included.
Clicking on Hosts will open the host list with only those hosts filtered that are linked to the template.
Entities (Items, Triggers, Graphs, Dashboards, Discovery, Web) Number of the respective entities in the template (displayed in gray). Clicking on the entity name will, in the whole listing of that entity, filter out those that belong to the template.
Linked templates Templates that are linked to the template, in a nested setup where the template will inherit all entities of the linked templates.
Linked to templates The templates that the template is linked to ("children" templates that inherit all entities from this template).
Since Zabbix 5.0.3, this column no longer includes hosts.
Tags Tags of the template, with macros unresolved.

To configure a new template, click on the Create template button in the top right-hand corner. To import a template from a YAML, XML, or JSON file, click on the Import button in the top right-hand corner.

Using filter

You can use the filter to display only the templates you are interested in. For better search performance, data is searched with macros unresolved.

The Filter link is available below Create template and Import buttons. If you click on it, a filter becomes available where you can filter templates by host group, linked templates, name and tags.

Parameter Description
Host groups Filter by one or more host groups.
Specifying a parent host group implicitly selects all nested host groups.
Linked templates Filter by directly linked templates.
Name Filter by template name.
Tags Filter by template tag name and value.
Filtering is possible only by template-level tags (not inherited ones). It is possible to include as well as exclude specific tags and tag values. Several conditions can be set. Tag name matching is always case-sensitive.
There are several operators available for each condition:
Exists - include the specified tag names
Equals - include the specified tag names and values (case-sensitive)
Contains - include the specified tag names where the tag values contain the entered string (substring match, case-insensitive)
Does not exist - exclude the specified tag names
Does not equal - exclude the specified tag names and values (case-sensitive)
Does not contain - exclude the specified tag names where the tag values contain the entered string (substring match, case-insensitive)
There are two calculation types for conditions:
And/Or - all conditions must be met, conditions having the same tag name will be grouped by the Or condition
Or - enough if one condition is met
Mass editing options

Buttons below the list offer some mass-editing options:

  • Export - export the template to a YAML, XML, or JSON file
  • Mass update - update several properties for a number of templates at once
  • Delete - delete the template while leaving its linked entities (items, triggers etc.) with the hosts
  • Delete and clear - delete the template and its linked entities from the hosts

To use these options, mark the checkboxes before the respective templates, then click on the required button.