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

host.get strange output

XMLWordPrintable

      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
      }

            Unassigned Unassigned
            neogan Andrei Gushchin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: