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

incorrect response to event.get API method

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 5.0.9
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            ssimonenko Sergey Simonenko
            Reporter:
            vraskoshnyy Slava Raskoshnyy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: