Ad Widget

Collapse

API - triggers and hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mario.in.dcstar
    Junior Member
    • Feb 2021
    • 5

    #1

    API - triggers and hosts

    hello everybody,

    hope you are all doing fine during these hard covid times.

    I have written a report in XL to get all the events eg from last week. All is well and I get the data.
    But how to I link the trigger(id) to the host where item resides that was triggered?
    When I get the trigger with get;trigger there is no relation with the host.

    TIA

    Mario

  • mario.in.dcstar
    Junior Member
    • Feb 2021
    • 5

    #2
    Tx Cyber it worked!
    Even directly in the query for the events: "selecthosts": "extend"

    Mario

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3

      https://www.zabbix.com/documentation...ce/trigger/get
      selectHosts query Return the hosts that the trigger belongs to in the hosts property.

      Comment

      Working...