9 Templates out of the box

Overview

Zabbix provides a growing set of pre-configured templates to simplify and speed up the setup of monitoring targets.

All out-of-the-box templates are available in Data collection > Templates.

When upgrading Zabbix, existing templates are not updated automatically to avoid overwriting custom modifications. To upgrade existing templates or add new ones, see Template upgrade.

Please use the sidebar to access information about specific template types and operation requirements.

See also:

Template upgrade

To upgrade a single template or add a new one after a Zabbix upgrade:

  1. Go to the Zabbix Git repository.
  2. In the branch selector (under the Source label), choose the branch that matches your Zabbix version (e.g., release/7.4 for Zabbix 7.4).
  3. Open the template you want to add or upgrade (e.g., MySQL by Zabbix agent).
  4. Copy the contents of the template file (e.g., template_db_mysql_agent.yaml) and save them to a local file.
  5. In Zabbix frontend, go to Data collection > Templates and import the local file.

You can also upgrade all templates and add new ones all at once:

  1. Download the template bundle depending on your web server: templates_1M_7.4.7z (Nginx) or templates_2M_7.4.7z (Apache).
  2. Extract the bundle. It contains YAML files (each with multiple templates) and an index (index-1M_74.md) listing templates included in each YAML file.
  3. In Zabbix frontend, go to Data collection > Templates and import the YAML files one by one.

Alternatively, you can import all YAML files at once using the import_templates.sh script. The script requires curl and jq utilities, and uses the configuration.import Zabbix API method. When running the script, provide the directory containing the YAML files and your Zabbix API URL and authentication token.

The import_templates.sh script overwrites all existing templates, with no option to review or undo template changes.

Example:

./import_templates.sh /tmp/templates_2M_7.4 https://example.com/zabbix/api_jsonrpc.php d8d6b5c78ee2a8333db11bfcd3e448c49c239d8ce00702759e2b56f42e24dbe4

Template compatibility with Host Wizard

For a full list of out-of-the-box templates that are compatible with the Host Wizard, see hw_compatible_templates.txt.

You can also make your custom templates compatible with the Host Wizard:

  1. In Zabbix frontend, go to Data collection > Templates and export the custom template.

  2. Edit the exported file:

  3. In Zabbix frontend, go to Data collection > Templates and import the updated template file.