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

"Trigger.get" with "host" param returns nothing

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.1.1
    • Fix Version/s: 2.3.0
    • Component/s: API (A)
    • Labels:

      Description

      Sending "trigger.get" request with "host" param returns exception with non informative text:
      JSON-rpc error generation failed. No such error "".

      Debug log:
      20: Sending: {"params": {"host": "Server", "startSearch": true, "search": {"description": "test trigger"}}, "jsonrpc": "2.0", "method": "trigger.get", "auth": "1f701fff1fasdf2bfcd2ec7b0f9114ad", "id": 1}
      10: Sending headers:

      {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'}

      20: Response Code: 200
      10: Response Body: {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'System error.', u'code': -32400, u'data': u'JSON-rpc error generation failed. No such error "".'}}
      (u'Error -32400: System error., JSON-rpc error generation failed. No such error "". while sending {"params": {"host": "Server", "startSearch": true, "search": {"description": "test trigger"}}, "jsonrpc": "2.0", "method": "trigger.get", "auth": "1f701fff1faf812bfcd2ec7b0f9114ad", "id": 1}', -32400)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dkuzmin Dmitry Kuzmin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: