I have a master template for linux machines that I want to attach the Systemd by Zabbix Agent 2 template to.
This works great for most machines, but we have two small groups that have existing templates which use systemd.unit.discovery. Zabbix blocks me from linking this template to the global one because of the machines that already use it, giving an error like:
Cannot inherit LLD rule with key "systemd.unit.discovery[service]" of template "Linked_systemd" to host "example_hostname", because an LLD rule with the same key is already inherited from template "Haproxy_Monitoring".
I've narrowed it down to the Discovery rules for each template, which use "systemd.unit.discovery[service]" provided by zabbix agent 2. The haproxy template above indeed uses this as well, as does another we're using.
I've tried renaming every key I can find within the discovery rule, and even exported the yaml for the entire template and changed all the uuids within it to newly generated ones and reimporting in case those were what was duplicated, but the errors persist.
Clearly I'm misunderstanding some core concept here as surely two templates must be able to ask the agent what systemd services are running - can someone please point out where I might be going wrong?
This works great for most machines, but we have two small groups that have existing templates which use systemd.unit.discovery. Zabbix blocks me from linking this template to the global one because of the machines that already use it, giving an error like:
Cannot inherit LLD rule with key "systemd.unit.discovery[service]" of template "Linked_systemd" to host "example_hostname", because an LLD rule with the same key is already inherited from template "Haproxy_Monitoring".
I've narrowed it down to the Discovery rules for each template, which use "systemd.unit.discovery[service]" provided by zabbix agent 2. The haproxy template above indeed uses this as well, as does another we're using.
I've tried renaming every key I can find within the discovery rule, and even exported the yaml for the entire template and changed all the uuids within it to newly generated ones and reimporting in case those were what was duplicated, but the errors persist.
Clearly I'm misunderstanding some core concept here as surely two templates must be able to ask the agent what systemd services are running - can someone please point out where I might be going wrong?
Comment