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

Host cannot have more than one default interface of the same type.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 2.4.5
    • API (A)
    • None
    • centos6.5

      >>> zbx.host.create({"host": "host","interfaces":[{"type": 1,"main": 1,"useip":1,"ip": "127.0.0.1","dns": "","port": 10050}],"groups":    [{ "groupid": "10" }],"templates
      "templateid": "10001" }],"inventory": {"macaddress_a": "test"}})
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 207, in call_wrapper
          return self.server_proxy.call(method, params=params)
        File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 159, in call
          return self._call(method, params=params, auth=self._auth_token)
        File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 167, in _call
          rpc_response = loads(content)
        File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 104, in loads
          data=data)
      zabbix_client.exceptions.JSONRPCError: Code: -32602, Message: Invalid params., Data: Host cannot have more than one default interface of the same type.
      

            Unassigned Unassigned
            zhangqd qidazhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: