Hello,
I am using Zabbix API in python connecting to Zabbix API Version 3.4.7 to add and delete hosts from docker events. I am testing with Admin user and host.add works as expected. But host.delete is giving me the following error:
My request is as follows:
The object does exist as I do a host.get prior to deletion. The host.get response is as follows:
I have gone through all the google results and could not find any link relevant to this situation.
Any help to get this moving will be much appreciated.
I am using Zabbix API in python connecting to Zabbix API Version 3.4.7 to add and delete hosts from docker events. I am testing with Admin user and host.add works as expected. But host.delete is giving me the following error:
Code:
Response Body: {
"jsonrpc": "2.0",
"id": 8,
"error": {
"message": "Application error.",
"code": -32500,
"data": "No permissions to referred object or it does not exist!"
}
}
Code:
Sending: {
"params": [
[
"10269"
]
],
"jsonrpc": "2.0",
"method": "host.delete",
"auth": "19742d8e0f7b9029186abe7ffe642336",
"id": 8
}
Code:
Sending: {
"params": {
"filter": {
"host": "docker-simple-ha-3251"
}
},
"jsonrpc": "2.0",
"method": "host.get",
"auth": "19742d8e0f7b9029186abe7ffe642336",
"id": 7
}
Response Code: 200
Response Body: {
"jsonrpc": "2.0",
"result": [
{
"available": "0",
"tls_connect": "1",
"maintenance_type": "0",
"ipmi_errors_from": "0",
"ipmi_username": "",
"snmp_disable_until": "0",
"ipmi_authtype": "-1",
"ipmi_disable_until": "0",
"lastaccess": "0",
"snmp_error": "",
"tls_psk": "",
"ipmi_privilege": "2",
"jmx_error": "",
"jmx_available": "0",
"maintenanceid": "0",
"snmp_available": "0",
"tls_psk_identity": "",
"status": "1",
"description": "",
"tls_accept": "1",
"host": "docker-simple-ha-3251",
"disable_until": "0",
"ipmi_password": "",
"templateid": "0",
"tls_issuer": "",
"ipmi_available": "0",
"maintenance_status": "0",
"snmp_errors_from": "0",
"ipmi_error": "",
"proxy_hostid": "0",
"hostid": "10269",
"name": "docker-simple-ha-3251",
"jmx_errors_from": "0",
"jmx_disable_until": "0",
"flags": "0",
"error": "",
"maintenance_from": "0",
"tls_subject": "",
"errors_from": "0"
}
],
"id": 7
}
Any help to get this moving will be much appreciated.
Comment