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

host.update method and "host" or "name" as identifier

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 2.0.1
    • API (A), Documentation (D)
    • None

      As i understand, it is possible to use "host" or "name" as identifier, but it is don't work:
      "ZabbixAPIException: (u'Error -32602: Invalid params., Wrong fields for host "". while sending {"params":

      {"status": 0, "name": "ekb-fax"}

      , "jsonrpc": "2.0", "method": "host.update", "auth": "", "id": 2}', -32602)"
      Also in http://www.zabbix.com/documentation/2.0/manual/appendix/api/host/update not said what "hostid" optional or not. If hostid is not optional then why need "host" or "name" parameter ?

            martins-v Martins Valkovskis
            gescheit gescheit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: