Zabbix Summit 2022
Register for Zabbix Summit 2022


integer/array dcheck.get(object parameters)

The method allows to retrieve discovery checks according to the given parameters.


(object) Parameters defining the desired output.

The method supports the following parameters.

Parameter Type Description
dcheckids string/array Return only discovery checks with the given IDs.
druleids string/array Return only discovery checks that belong to the given discovery rules.
dserviceids string/array Return only discovery checks that have detected the given discovered services.
sortfield string/array Sort the result by the given properties.

Possible values are: dcheckid and druleid.
countOutput flag These parameters being common for all get methods are described in detail on the Generic Zabbix API information page.
editable boolean
excludeSearch flag
filter object
limit integer
nodeids string/array
output query
preservekeys flag
search object
searchByAny boolean
searchWildcardsEnabled boolean
sortorder string/array
startSearch flag

Return values

(integer/array) Returns either:

  • an array of objects;
  • the count of retrieved objects, if the countOutput parameter has been used.


Retrieve discovery checks for a discovery rule

Retrieve all discovery checks used by discovery rule "6".


           "jsonrpc": "2.0",
           "method": "dcheck.get",
           "params": {
               "output": "extend",
               "dcheckids": "6"
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1


           "jsonrpc": "2.0",
           "result": [
                   "dcheckid": "6",
                   "druleid": "4",
                   "type": "3",
                   "key_": "",
                   "snmp_community": "",
                   "ports": "21",
                   "snmpv3_securityname": "",
                   "snmpv3_securitylevel": "0",
                   "snmpv3_authpassphrase": "",
                   "snmpv3_privpassphrase": "",
                   "uniq": "0"
           "id": 1


CDCheck::get() in frontends/php/api/classes/CDCheck.php.