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

incorrect response to event.get API method

XMLWordPrintable

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

      Hi.
      On request to API with parameters

          "jsonrpc": "2.0",
          "method": "event.get",
          "params": {
      
              "value":"1",
              "severities":"4",
              "suppressed":"false"
          },
      

      I get a response with many events. For example,

      {
          "jsonrpc": "2.0",
          "result": [
              {
                  "eventid": "387960503",
                  "source": "0",
                  "object": "0",
                  "objectid": "1152914",
                  "clock": "1595583216",
                  "value": "1",
                  "acknowledged": "0",
                  "ns": "538319101",
                  "name": "Температурный режим сервера : failed (4)",
                  "severity": "4",
                  "r_eventid": "0",
                  "c_eventid": "0",
                  "correlationid": "0",
                  "userid": "0",
                  "opdata": "",
                  "suppressed": "1",
                  "urls": []
              },
      

      the answer contains "suppressed": "1"

      but in the request we do not want to receive such events and use the parameter "suppressed":"false" according to API documentation for event.get method

      I tried to specify in the request "suppressed":"0" and then I get an error in response: 500 Internal Server Error

      It looks like the request handling for the event.get method is not working correctly.

            zabbix.support Zabbix Support Team
            vraskoshnyy Slava Raskoshnyy
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: