Ad Widget

Collapse

Trigger Dependency Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • highpeak
    Member
    • Nov 2019
    • 30

    #1

    Trigger Dependency Template


    We have a situation where we have thousands of sites with one device behind a switch/router.

    Host1 <---> Router1 <---> Zabbix

    I wish to create a dependency on the host trigger:
    'Host1 is down' trigger depends on 'Router1 is down' trigger

    However, I use the API to populate all devices and routers to Zabbix and allocate a suitable template to each device (Host Template and Router Template).

    I would like to create a trigger template that reads "If Host[n] is down" trigger depends on 'Router[y] is down".

    Or, more specifically for each Host[n] add a dependency for "{INVENTORY.OOB.ROUTER} is down"

    Router[y] is added to Host[n] as an inventory item {INVENTORY.OOB.ROUTER} so that we can create the relationship between the two.

    Is it possible to templatize this?
Working...