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

Not possible to get open events using the event.get API

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.4.2
    • API (A)

      Steps to reproduce:

      {
          "jsonrpc": "2.0",
          "method": "event.get",
          "params": {
              "output": [
                  "eventid",
                  "value",
                  "r_eventid"
              ],
              "value": "1",
              "search": {
                  "r_eventid": "0"
              },
              "startSearch": true,
              "limit": 5
          },
          "id": 1
      }

      Result:

      {
          "jsonrpc": "2.0",
          "result": [
              {
                  "eventid": "3761654",
                  "value": "1",
                  "r_eventid": "0"
              },
              {
                  "eventid": "4083768",
                  "value": "1",
                  "r_eventid": "0"
              },
              {
                  "eventid": "5171834",
                  "value": "1",
                  "r_eventid": "5171926"
              },
              {
                  "eventid": "5171837",
                  "value": "1",
                  "r_eventid": "5171840"
              },
              {
                  "eventid": "5171839",
                  "value": "1",
                  "r_eventid": "5171844"
              }
          ],
          "id": 1
      }

      Expected:
      Only active/open/problem/not resolved events, with r_eventid = 0, meaning the event is still not resolved.

      If I have missed some parameter to filter such events, please advise how to do it.

            aigars.kadikis Aigars Kadikis
            yuriip Yurii Polenok
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: