zabbix api triggers.get seems to ignore triggerids

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Using the py-zabbix api library which is passing the correct params, but the API seems to ignore triggerids

       

      I've tried:

      triggers = zapi.trigger.get(
          hostids=hosts_id,
          filter={
              "templateids": "12345")
          }
      )
      urllib2.Request(https://<url>/api_jsonrpc.php, {"jsonrpc": "2.0", "method": "trigger.get", "params": {"hostids": ["<id>"], "filter": {"templateids": "<id>"}}, "id": "1", "auth": "********"})
      

       

      I've tried:

      triggers = zapi.trigger.get(
          hostids=hosts_id,
          templateids = str(template_trigger["templateid"])
      ) 
      urllib2.Request(https://<url>/api_jsonrpc.php, {"jsonrpc": "2.0", "method": "trigger.get", "params": {"hostids": ["<id>"], "templateids": "<id>"}, "id": "1", "auth": "********"}) 

      I also tried this in postman with direct requests and in all cases I'm getting the entire list of triggers, not just the one specified as the templateids

       

            Assignee:
            Zabbix Support Team
            Reporter:
            Dennis Whitney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: