I'm trying to use graph.create via json api to create a graph and it seems to always ignore the hostid I set.
I have tried all possible combinations of params:
"hostid": 10087
"hosts": [ "10087" ]
"hosts": [ { "hostid": "10087" } ]
"hostids": [ "10087" ]
"hostids": [ { "hostid": "10087" } ]
It always ignores the hostid and tries to create the graph in the first host in the table (first one created).
Of course it sucessfully creates the first graph and then fails saying the graph already exists.
Is this a bug in zabbix api or am I doing something wrong.
Thank you
I have tried all possible combinations of params:
"hostid": 10087
"hosts": [ "10087" ]
"hosts": [ { "hostid": "10087" } ]
"hostids": [ "10087" ]
"hostids": [ { "hostid": "10087" } ]
It always ignores the hostid and tries to create the graph in the first host in the table (first one created).
Of course it sucessfully creates the first graph and then fails saying the graph already exists.
Is this a bug in zabbix api or am I doing something wrong.
Thank you