Example how to reproduce:
Create 3 templates with one simple check rule for each template (Just by example, service types doesn't matter)
Create 3 triggers, one for each template with service availability (ping,http,ssh)
SSH service availability trigger from the SSH Template and HTTP service availability trigger from the HTTP template both depends on PING service availability trigger from the Ping template
Create discovery rule with ping,ssh,http service checks
Create Discovery Actions
- link HTTP and PING template if HTTP service is found
- link SSH and PING template if SSH service is found
For each host found, host is created, templates are linked and trigger dependencies are assigned to the correct host
Only one template is linked correctly, on the second template trigger dependency is set to the template, not to the host !!!
See attached screenshots.