Close
Log in to Zabbix Blog
Email
Password
Show password Hide password
Forgot password?
Incorrect e-mail and/or password
or
By creating an account or logging in with an existing account, you agree to our Terms of Service
Handy TipsTechnicalHow ToIntegrationsConferencesCommunityNewsSocialInterviewCase StudyLogin

Handy Tips #7: Learn new tricks for easy template management and import

The updated template import functionality brings a whole new layer of transparency to the template import process. Let’s take a closer look at the benefits of the template import improvements. Before Zabbix 5.4, the template import process was lacking in transparency. Users had to rely on the template documentation to fully grasp the contents of […]

The updated template import functionality brings a whole new layer of transparency to the template import process. Let’s take a closer look at the benefits of the template import improvements.

Before Zabbix 5.4, the template import process was lacking in transparency. Users had to rely on the template documentation to fully grasp the contents of the newly imported template.

In Zabbix 5.4, we introduced unique universal IDs for each template element, such as items, triggers, graphs, etc.:

  • Template element IDs work as the element uniqueness criteria
  • UUIDs allow to instantly tell which element has been modified
  • When importing a newer template version, all changes are highlighted
  • Automate the template import with your CI/CD system and Zabbix API whenever the template has been modified

Check out the video to see the improved template import process

How to import a template:

  1. Go to theĀ Configuration –Ā TemplatesĀ menu section
  2. PressĀ ImportĀ in the upper right corner
  3. Select the template file you wish to import
  4. Mark appropriate checkboxes to select which template elements you would like to update, create new elements, or delete existing elements
  5. PressĀ ImportĀ andĀ review the changes
  6. You can use the left column to navigate between updated template elements
  7. Press ImportĀ to confirm template import
Tips and best practices:
  • The latest official templates are available in the Zabbix git repository
  • Updating Zabbix does not updateĀ the existing templates
  • Templates can be exported to a YAML, XML, or JSON file
  • Zabbix self-monitoring templates receive regular updates. It is important to use the self-monitoring templates that match the particularĀ Zabbix version
Prev Post Prev Post Next Post Next Post
Subscribe
Notify of
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Gran Erksson
Gran Erksson
3 years ago

What if I want to keep modifications made to the old template when importing a new template? Lets say I’ve removed some items from the old template, but the items kept are updated and I want to apply those updates from the new template. Then I can only choose to apply _all_ changes within a specific element, in this case items. How would one solve this?
I think a really useful feature would be to be able to select which differences to apply, maybe using the left hand column.

1
0
Would love your thoughts, please comment.x
()
x