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

Application Error on Host Update

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 3.0.0alpha3
    • API (A)
    • None
    • Debian/Ubuntu but it concerns architecture independent php.

      Using a minimal Python client for zabbix API (zabbix-client) working on 2.4, I get an undocumented error on host update API. It seems that for host update the API needs additional parameters, and the missing causes an early failure.

      >>> from zabbix_client import ZabbixServerProxy
      >>> s = ZabbixServerProxy('http://localhost/zabbix')
      >>> s.apiinfo.version()
      u'3.0.0'
      >>> s.host.update(hostid=10113, status=0)
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/local/lib/python2.7/dist-packages/zabbix_client/api_wrapper.py", line 201, in call_wrapper
          return self.server_proxy.call(method, params=params)
        File "/usr/local/lib/python2.7/dist-packages/zabbix_client/api_wrapper.py", line 153, in call
          return self._call(method, params=params, auth=self._auth_token)
        File "/usr/local/lib/python2.7/dist-packages/zabbix_client/api_wrapper.py", line 161, in _call
          rpc_response = loads(content)
        File "/usr/local/lib/python2.7/dist-packages/zabbix_client/api_wrapper.py", line 104, in loads
          data=data)
      zabbix_client.exceptions.JSONRPCError: Code: -32500, Message: Application error., Data: Cannot update host encryption settings. Connection settings for both directions should be specified.
      >>>
      

            Unassigned Unassigned
            Buzz_Lightyear Tommaso Latini
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: