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

Drule.get returns empty dchecks list

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.8.5rc1
    • Fix Version/s: 1.8.20rc1
    • Component/s: API (A)
    • Labels:
    • Environment:
      Centos 5.6, PostgreSQL 8.4

      Description

      Drule.get returns empty dchecks list, while there is an ICMP Ping check defined in that rule.

      JSON query
      {
      "params" : {
      "filter" :

      { "name" : [ "???? 10.1.1.0/24" ] }

      ,
      "output" : "extend",
      "selectDChecks" : "extend"
      },
      "auth" : "23df0748c4e89204014830e343e707ab",
      "jsonrpc" : "2.0",
      "method" : "drule.get",
      "id" : 7
      }

      JSON reply
      [

      { "nextcheck" : "0", "iprange" : "10.1.1.0/24", "druleid" : "7", "proxy_hostid" : "0", "status" : "0", "delay" : "300", "name" : "???? 10.1.1.0/24", "dchecks" : [], "unique_dcheckid" : "0" }

      ]

        Attachments

        1. api_drule.patch
          11 kB
        2. class.cdrule.php.2.patch
          7 kB
        3. class.cdrule.php.patch
          1 kB
        4. rule.get_1.8.16.patch
          1 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sire Sergey Syreskin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: