-
Incident report
-
Resolution: Won't fix
-
Major
-
None
-
3.0.0alpha3
-
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. >>>