Hi
I'm trying to add a host to a network map via Zabbix API. The request is performed without error, but the host doesn't appear on the map, neither does Zabbix database table sysmaps_elements change.
JSON query:
JSON result:
What am I doing wrong? Is the ability to modify map objects implemented in the API, or is there another way of doing this?
Zabbix version is 1.8.5rc1.x-18700.
I'm trying to add a host to a network map via Zabbix API. The request is performed without error, but the host doesn't appear on the map, neither does Zabbix database table sysmaps_elements change.
JSON query:
Code:
{
"params" : {
"selements" : [
{
"iconid_off" : "11",
"iconid_unknown" : "0",
"label_location" : "0",
"x" : 400,
"elementid" : "10101",
"sysmapid" : "7",
"iconid_on" : "0",
"y" : 300,
"iconid_disabled" : "0",
"url" : "",
"label" : "Маршрутизатор\n{IPADDRESS}",
"elementtype" : "0",
"iconid_maintenance" : "0"
}
],
"sysmapid" : "7"
},
"auth" : "4e7f3c8ff1716f84f7d3e8eef536853f",
"jsonrpc" : "2.0",
"method" : "map.update",
"id" : 7
}
Code:
{
"sysmapids" : [
"7"
]
}
Zabbix version is 1.8.5rc1.x-18700.

Comment