[ZBX-8313] Linked template dependency gets checked, before linking all templates Created: 2014 Jun 06  Updated: 2017 May 30  Resolved: 2014 Jun 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.2
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Marco Hofmann Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: dependencies, templatelinking
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix Server 2.2.2 on Debian 7
Zabbix Proxy 2.2.2 on Debian 7
Zabbix Agent 2.2.1 on Windows Server 2008 R2



 Description   

Detailed description in forum post: https://www.zabbix.com/forum/showthread.php?p=150817

---------------------------------------------------------------------

11864:20140606:161631.142 cannot link template: trigger "RDP connect failed on

{HOST.NAME}" in template "TEMPLATE_Customer OS Windows" has dependency from trigger "Ping Check Failed on {HOST.NAME}

" in template "TEMPLATE_Customer ICMP Ping"

The two templates "TEMPLATE_Customer OS Windows" & "TEMPLATE_Customer ICMP Ping" are linked.
But it seems like the dependency is checked before both templates are linked to the host....
When I separate the templates and link them manually, it works if I link the ICMP template first. It fails with the exact same error, when I link the Windows OS first (for obvious reasons)

So in my eyes, this is a bug. You can't link linked templates which have dependencies, because they are checked, before both templates are linked.



 Comments   
Comment by Juris Miščenko (Inactive) [ 2014 Jun 16 ]

This is not an error; this is the desired/expected behavior.

Say you have Template B that has a trigger that depends on another trigger in Template A. The auto-registration actions state that Template B must be linked to the host upon creation, but it is not done, as there is no action that explicitly links Template A to the host. We do not link any dependency templates unless explicitly told to do so. Upon auto-registering a host, all dependencies of a linked template must be satisfied explicitly.

Generated at Wed Apr 24 18:53:33 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.