Ad Widget

Collapse

API - mapping host triggers to actions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kukunga
    Junior Member
    • Nov 2015
    • 1

    #1

    API - mapping host triggers to actions

    I am working on cataloging host triggers and their related actions. The goal is to see a host's trigger along with the recipient(s) of the action. A parameter in the API for the action.get method named triggerids appears to be exactly what I want. The thought is to use the action.get method with the triggerid of a given host's trigger, and see which action(s) is/are associated with said trigger. This is not the outcome of my effort so far. When I attempt to retrieve an action by providing a triggerid, I receive nothing (empty) in response. I seem to have two potential causes.

    1) I am not scripting the parameter properly
    2) I do not understand the purpose of the triggerids parameter for the action.get method

    I am using Zabbix version 3.0.4. I'm leveraging Powershell as the vehicle to communicate with the API. If I want to retrieve all Zabbix actions, the action.get method works as expected by returning all Zabbix actions. Might anyone have a pointer or two for troubleshooting I could try out? What is the purpose of the triggerids parameter if not to exercise the effort I am attempting?
Working...