Ad Widget

Collapse

Is it possible to create a cross host trigger and monitor it from a Pseudo Host

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • milospt1
    Junior Member
    • May 2025
    • 10

    #1

    Is it possible to create a cross host trigger and monitor it from a Pseudo Host

    Hello everyone, I am working on creating a Synthetic Monitoring(using template Website by Zabbix) for internal web applications using Zabbix, and I am wondering is it possible from a Pseudo Host to monitor items or triggers on a different host?

    In my setup I have two hosts that monitor single web application, each of these hosts uses separate zabbix proxy to monitor web application. In those hosts, among other things I have items for two web nodes that I am monitoring.
    Since I get false positives from time to time with disaster severity, I got idea to create a Pseudo Host, lets call it **Synthetic Monitoring Critical Alerts**.

    In that pseudo host, I would create a trigger that targets lets say Web node status items inside two separate host and trigger would activate only if both web nodes are down on both hosts, I have tried to accomplish this with sample expression in trigger:
    Code:
      
    last(/WebApp1 by Proxy01/website.web_primary_status)<>"Online" and last(/WebApp1 by Proxy01/website.web_secondary_status)<>"Online" and last(/WebApp1 by Proxy02/website.web_primary_status)<>"Online" and last(/WebApp1 by Proxy02/website.web_secondary_status)<>"Online"
    However doing this, creates a trigger on the hosts WebApp1 by Proxy01 and WebApp1 by Proxy02, instead of pseudo host Synthetic Monitoring Critical Alerts. Also, on the pseudo host I tried creating an item that would point to and item from lets say host WebApp1 by Proxy01, but since it is a dependent item, I could not reference it from another host.

    Did someone try creating a similar setup or cross-host triggers? Any input on this is appreciated.
  • Answer selected by troffasky at 19-11-2025, 19:32.
    milospt1
    Junior Member
    • May 2025
    • 10

    Update for anyone in similar situation

    I was able to accomplish desired result by creating a Pseudo Host, in that host I created item with type "Calculated".
    Name and key do not matter, put something that makes sense to you, for me key is in format TenantId.Web.Status.

    Type of information: Numeric(unsigned)
    Formula looks like this:
    Code:
      
    last(/WebApp1 by Proxy01/website.web_primary_status)<>"Online" and  
    last(/WebApp1 by Proxy01/website.web_secondary_status)<>"Online" and  
    last(/WebApp1 by Proxy02/website.web_primary_status)<>"Online" and  
    last(/WebApp1 by Proxy02/website.web_secondary_status)<>"Online"
    Where WebApp1 by Proxy01 is the name of my host and website.web_primary_status is item inside my host. Item will return 0 or 1 as result.
    Based on this item, I have created a trigger that uses last() function and trigger will activate only if item returns 1.

    After this on my hosts from which I run synthetic monitoring check I just added trigger dependency that points to a trigger on pseudo host.

    Comment

    • milospt1
      Junior Member
      • May 2025
      • 10

      #2
      Update for anyone in similar situation

      I was able to accomplish desired result by creating a Pseudo Host, in that host I created item with type "Calculated".
      Name and key do not matter, put something that makes sense to you, for me key is in format TenantId.Web.Status.

      Type of information: Numeric(unsigned)
      Formula looks like this:
      Code:
        
      last(/WebApp1 by Proxy01/website.web_primary_status)<>"Online" and  
      last(/WebApp1 by Proxy01/website.web_secondary_status)<>"Online" and  
      last(/WebApp1 by Proxy02/website.web_primary_status)<>"Online" and  
      last(/WebApp1 by Proxy02/website.web_secondary_status)<>"Online"
      Where WebApp1 by Proxy01 is the name of my host and website.web_primary_status is item inside my host. Item will return 0 or 1 as result.
      Based on this item, I have created a trigger that uses last() function and trigger will activate only if item returns 1.

      After this on my hosts from which I run synthetic monitoring check I just added trigger dependency that points to a trigger on pseudo host.

      Comment

      Working...