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"

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 1.8.5
    • Fix Version/s: 2.0.0
    • Component/s: API (A)
    • Labels:

      Description

      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"}

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: