hi,
I am trying to create a net snmp interface on a host. I've copied the expample code from the manual and made it suitable for my environment:
When i post this command i allways get a error:
"message": "Parse error",
"data": "Invalid JSON. An error occurred on the server while parsing the JSON text."
So i understand that the json code is not correct, but i can't figureout what part is wrong. I've tried many thing now but nothing seems to work.
I can create an agent interface via the api on the same host with out any troubles...... But a snmp interface keep failing.
I'am using postman and zabbix 6.0.25.
Any help would be appreciated
I am trying to create a net snmp interface on a host. I've copied the expample code from the manual and made it suitable for my environment:
Code:
{
"jsonrpc": "2.0",
"method": "hostinterface.create",
"params": {
"hostid": "11816",
"main": "1",
"type": "2",
"useip": "1",
"ip": "127.0.0.1",
"dns": "",
"port": "161",
"details": {
"version": "2",
"bulk": "1"
}
},
"auth": "spuersecret",
"id": 1
}
"message": "Parse error",
"data": "Invalid JSON. An error occurred on the server while parsing the JSON text."
So i understand that the json code is not correct, but i can't figureout what part is wrong. I've tried many thing now but nothing seems to work.
I can create an agent interface via the api on the same host with out any troubles...... But a snmp interface keep failing.
I'am using postman and zabbix 6.0.25.
Any help would be appreciated
Comment