Ad Widget

Collapse

How to synchonize nested templates to many Zabbix hosts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bogdar
    Member
    • Jan 2009
    • 33

    #1

    How to synchonize nested templates to many Zabbix hosts?

    Hi.

    There is using a hierarchy of linked templates to re-define macro values and trigger severity.
    Zabbix 5.2 manual say that "Host and template entities (items, triggers, graphs, discovery rules) that are inherited from linked templates are not exported. Any changes made to those entities on a host level (such as changed item interval, modified regular expression or added prototypes to the low-level discovery rule) will be lost"

    Templates are organised to gather data at the root level, add triggers and macros with default thresholds on next levels on inheritance and then re-define severity, enable/disable some trigger and adjust threshold via macros. We use Ansible module which links templates to host during the host rollout and also adjust macro values. It works fine in development environment, however there are no way to copy linked templates to the production instances.

    Ansible module for Zabbix can manage triggers on the host level now so I can't move trigger changes from the templates playbook level.
    How can I copy a chain of linked templates to the plain one eligible for export without configuration loss?
    How people a managing multiple instances of Zabbix and keep their templates structure in sync?
    Am I doing something wrong in my monitoring automation approach?

    Thank you.
Working...