Details

    • Type: Incident report Incident report
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2rc1
    • Component/s: API (A)

      Description

      In documentation output like this:
      {
      "jsonrpc": "2.0",
      "method": "host.get",
      "params": {
      "output": "extend",
      "filter":

      { "host": [ "Zabbix server", "Linux server" ] }


      },
      "auth": "038e1d7b1735c6a5436ee9eae095879e",
      "id": 1
      }

      {
      "jsonrpc": "2.0",
      "result": [

      { "maintenances": [], "hostid": "10167", "proxy_hostid": "0", "host": "Linux server", "status": "0", "disable_until": "0", "error": "", "available": "0", "errors_from": "0", "lastaccess": "0", "ipmi_authtype": "-1", "ipmi_privilege": "2", "ipmi_username": "", "ipmi_password": "", "ipmi_disable_until": "0", "ipmi_available": "0", "snmp_disable_until": "0", "snmp_available": "0", "maintenanceid": "0", "maintenance_status": "0", "maintenance_type": "0", "maintenance_from": "0", "ipmi_errors_from": "0", "snmp_errors_from": "0", "ipmi_error": "", "snmp_error": "", "jmx_disable_until": "0", "jmx_available": "0", "jmx_errors_from": "0", "jmx_error": "", "name": "Linux server" }

      ],
      "id": 1
      }

      The true result is:

      {
      "jsonrpc": "2.0",
      "result": [{
      "templates":[

      {"templateid":"0","hostid":"0"}

      ],
      "maintenances": [],
      "hostid": "10167",
      "proxy_hostid": "0",
      "host": "Linux server",
      "status": "0",
      "disable_until": "0",
      "error": "",
      "available": "0",
      "errors_from": "0",
      "lastaccess": "0",
      "ipmi_authtype": "-1",
      "ipmi_privilege": "2",
      "ipmi_username": "",
      "ipmi_password": "",
      "ipmi_disable_until": "0",
      "ipmi_available": "0",
      "snmp_disable_until": "0",
      "snmp_available": "0",
      "maintenanceid": "0",
      "maintenance_status": "0",
      "maintenance_type": "0",
      "maintenance_from": "0",
      "ipmi_errors_from": "0",
      "snmp_errors_from": "0",
      "ipmi_error": "",
      "snmp_error": "",
      "jmx_disable_until": "0",
      "jmx_available": "0",
      "jmx_errors_from": "0",
      "jmx_error": "",
      "name": "Linux server"
      }
      ],
      "id": 1
      }

        Activity

        Hide
        Andrei Gushchin added a comment -

        AFAIK this line shouldn't be there.
        "templates":[

        {"templateid":"0","hostid":"0"}

        ],

        Show
        Andrei Gushchin added a comment - AFAIK this line shouldn't be there. "templates":[ {"templateid":"0","hostid":"0"} ],
        Hide
        Pavels Jelisejevs (Inactive) added a comment -

        This issue has been fixed for 2.3 in ZBXNEXT-2017.

        CLOSED.

        Show
        Pavels Jelisejevs (Inactive) added a comment - This issue has been fixed for 2.3 in ZBXNEXT-2017 . CLOSED.
        Hide
        Alexander Vladishev added a comment -

        Reopening. It should be fixed for 2.2.x.

        Show
        Alexander Vladishev added a comment - Reopening. It should be fixed for 2.2.x.
        Hide
        Pavels Jelisejevs (Inactive) added a comment -

        RESOLVED for 2.2 in svn://svn.zabbix.com/branches/dev/ZBX-7660.

        Show
        Pavels Jelisejevs (Inactive) added a comment - RESOLVED for 2.2 in svn://svn.zabbix.com/branches/dev/ZBX-7660.
        Hide
        Eduards Samersovs (Inactive) added a comment - - edited

        (1) Will be nice to use "parentTemplateId" in $sqlParts['select']['templateid']

        Pavels Jelisejevs RESOLVED in r41720.
        Eduards Samersovs CLOSED

        Show
        Eduards Samersovs (Inactive) added a comment - - edited (1) Will be nice to use "parentTemplateId" in $sqlParts ['select'] ['templateid'] Pavels Jelisejevs RESOLVED in r41720. Eduards Samersovs CLOSED
        Hide
        Eduards Samersovs (Inactive) added a comment -

        Tested

        Show
        Eduards Samersovs (Inactive) added a comment - Tested
        Hide
        Pavels Jelisejevs (Inactive) added a comment -

        Fixed in 2.2.2rc1 r41728.

        Show
        Pavels Jelisejevs (Inactive) added a comment - Fixed in 2.2.2rc1 r41728.
        Hide
        Pavels Jelisejevs (Inactive) added a comment -

        CLOSED.

        Show
        Pavels Jelisejevs (Inactive) added a comment - CLOSED.

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrei Gushchin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: