Hi,
I try to add a host to a map with map.createSelements but it doesn't work.
The JSON request is :
The JSON response is :
Can anyone tell me how this API method work?
Zabbix version : 2.0.4
Thank you!
I try to add a host to a map with map.createSelements but it doesn't work.
The JSON request is :
Code:
{
"jsonrpc": "2.0",
"method": "map.createSelements",
"params": {
"sysmapid" : "'+$HG1+'",
"elementid" : "'+$DG3hostid+'",
"elementtype" : 0,
"label" : "{HOST.NAME}",
"x" : 10,
"y" : 10,
"iconid_off" : "95",
"iconid_on" : "95",
"iconid_disabled" : "95",
"label_location" : 0
},
"auth": "'+$auth+'",
"id": 1
}
Code:
{"jsonrpc":"2.0","error":{"code":-32400,"message":"System error.","data":"JSON-rpc error generation failed. No such error \"\"."},"id":1}
Zabbix version : 2.0.4
Thank you!
Comment