Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3743

Zabbix API returns empty result when using parameter "limit" for method "trigger.get"

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0
    • 1.8.4, 1.8.5
    • API (A)

      Zabbix API returns empty result when using parameter "limit" for method "trigger.get".

      Example:

      When using the following parameters

      {"output":"extend","withLastEventUnacknowledged":1,"limit":5}

      for the "trigger.get" method Zabbix API returns empty result:

      2 ----->
      {"jsonrpc":"2.0","method":"trigger.get","params":

      {"output":"extend","withLastEventUnacknowledged":1,"limit":5}

      ,"auth":"b6cb98469a14f7f1c818acab93f67844","id":2}

      <-----

      {"jsonrpc":"2.0","result":[],"id":2}

      But when using parameters

      {"output":"extend","withLastEventUnacknowledged":1}

      got successful result:

      {"jsonrpc":"2.0","result":[{"triggerid":"15048","expression":"

      {16528}

      >0","description":"Host information was changed on

      {HOSTNAME}

      ","url":"","status":"0","value":"0","priority":"1","lastchange":"1301399382","dep_level":"0","comments":"","error":"","templateid":"10044","type":"0"},{"triggerid":"15146","expression":"

      {16702}

      >1","description":"vm.memory.size[pfree].last(0)}>1","url":"","status":"0","value":"2","priority":"4","lastchange":"1297769020","dep_level":"0","comments":"","error":"Host is unavailable.","templateid":"0","type":"0"}

            Unassigned Unassigned
            igor Igor Danoshaites (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: