Hi All,
I am having some difficulty getting the Zabbix 2.21 API to work using a Python wrapper.
I'm passing the object parameters per the Zabbix API documentation, and nothing looks amiss in the pyzabbix library or my test script.
I am authenticating and connecting to the Zabbix server without issue.
No matter what field I try to get (I am using host.get(output="extend") as a test) I am getting the error
Any ideas? I came across a couple of posts from 1-2 years ago but those didn't offer any solutions.
I should note I tried a direct curl test and that produces the same error.
Thanks in advance,
D
I am having some difficulty getting the Zabbix 2.21 API to work using a Python wrapper.
I'm passing the object parameters per the Zabbix API documentation, and nothing looks amiss in the pyzabbix library or my test script.
I am authenticating and connecting to the Zabbix server without issue.
No matter what field I try to get (I am using host.get(output="extend") as a test) I am getting the error
Code:
pyzabbix.ZabbixAPIException: ("Error 32700: Parse Error, Invalid JSON. An error occurred on the server while parsing the JSON text. while sending {'params': {'output': 'extend'}, 'jsonrpc': '2.0', 'method': 'host.get', 'id': 0}", -32700)
I should note I tried a direct curl test and that produces the same error.
Thanks in advance,
D
Comment