Configuring a template requires that you first create a template by defining its general parameters and then you add entities (items, triggers, graphs, etc.) to it.
To create a template, do the following:
The Templates tab contains general template attributes.
All mandatory input fields are marked with a red asterisk.
Template attributes:
Parameter | Description |
---|---|
Template name | Unique template name. Alphanumerics, spaces, dots, dashes, and underscores are allowed. However, leading and trailing spaces are disallowed. |
Visible name | If you set this name, it will be the one visible in lists, maps, etc. |
Templates | Link one or more "nested" templates to this template. All entities (items, triggers, graphs, etc.) will be inherited from the linked templates. To link a new template, start typing the template name in the Link new templates field. A list of matching templates will appear; scroll down to select. Alternatively, you may click on Select next to the field and select templates from the list in a popup window. The templates that are selected in the Link new templates field will be linked to the template when the template configuration form is saved or updated. To unlink a template, use one of the two options in the Linked templates block: Unlink - unlink the template, but preserve its items, triggers, and graphs Unlink and clear - unlink the template and remove all its items, triggers, and graphs |
Groups | Host/template groups the template belongs to. |
Description | Enter the template description. |
The Tags tab allows you to define template-level tags. All problems of hosts linked to this template will be tagged with the values entered here.
User macros, {INVENTORY.*} macros, {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} and {HOST.ID} macros are supported in tags.
The Macros tab allows you to define template-level user macros as a name-value pairs. Note that macro values can be kept as plain text, secret text, or Vault secret. Adding a description is also supported.
You may also view here macros from linked templates and global macros if you select the Inherited and template macros option. That is where all defined user macros for the template are displayed with the value they resolve to as well as their origin.
For convenience, links to respective templates and global macro configuration are provided. It is also possible to edit a nested template/global macro on the template level, effectively creating a copy of the macro on the template.
The Value mapping tab allows to configure human-friendly representation of item data in value mappings.
Buttons:
Add the template. The added template should appear in the list. | |
Update the properties of an existing template. | |
Create another template based on the properties of the current template, including the entities (items, triggers, etc) inherited from linked templates. | |
Create another template based on the properties of the current template, including the entities (items, triggers, etc) both inherited from linked templates and directly attached to the current template. | |
Delete the template; entities of the template (items, triggers, etc) remain with the linked hosts. | |
Delete the template and all its entities from linked hosts. | |
Cancel the editing of template properties. |
With a template created, it is time to add some entities to it.
Items have to be added to a template first. Triggers and graphs cannot be added without the corresponding item.
To add items to the template, do the following:
All the selected items should be copied to the template.
Adding triggers and graphs is done in a similar fashion (from the list of triggers and graphs respectively), again, keeping in mind that they can only be added if the required items are added first.
To add dashboards to a template in Configuration → Templates, do the following:
The widgets that can be included in a template dashboard are: classic graph, graph prototype, clock, plain text, URL.
For details on accessing host dashboards that are created from template dashboards, see the host dashboard section.
See the low-level discovery section of the manual.
To add web scenarios to a template in Configuration → Templates, do the following:
Only Super Admin users can create template groups.
To create a template group in Zabbix frontend, do the following:
To create a nested template group, use the '/' forward slash separator, for example Linux servers/Databases/MySQL
. You can create this group even if none of the two parent template groups (Linux servers/Databases/
) exist. In this case creating these parent template groups is up to the user; they will not be created automatically.
Leading and trailing slashes, several slashes in a row are not allowed. Escaping of '/' is not supported.
Once the group is created, you can click on the group name in the list to edit group name, clone the group or set additional option:
Apply permissions to all subgroups - mark this checkbox and click on Update to apply the same level of permissions to all nested template groups. For user groups that may have had differing permissions assigned to nested template groups, the permission level of the parent template group will be enforced on the nested groups. This is a one-time option that is not saved in the database.
Permissions to nested template groups
Databases/MySQL
if Databases
already exists)Databases
if Databases/MySQL
already exists)