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

dservice.get - incorrect filtering by dcheckids

XMLWordPrintable

    • Sprint 55 (Aug 2019), Sprint 54 (Jul 2019)
    • 0.125

      When performing dservice.get and filtering services by dcheckids, this API will return all services, that were discovered by drules that have selected dchecks.

      Steps to reproduce:

      1. Create Discovery rule with two Checks.
      2. Discover a host with two services (both services are based on different checks)
      3. Now perform an API request like this:
        {
           "jsonrpc": "2.0",
            "method": "dservice.get",
            "params": {
        		"dcheckids": [1234]
            },
            "auth": "{{auth}}",
            "id": 1
        }

      Result: It will return both services, including the one, that was discovered based on other discovery check.
      Expected: Only service, based on requested dcheck should be returned.

            basilgon Vasily Goncharenko (Inactive)
            vmurzins Valdis Murzins
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: