I have a lot of hosts in zabbix. all of these hosts share the same template and graphs.
When i use the api function graph.get i expect the actual graphid of the specific host instead of the graphid of the template. I get the "templatepgraphid" for every host.
What is wrong with my code? thanx in advance
When i use the api function graph.get i expect the actual graphid of the specific host instead of the graphid of the template. I get the "templatepgraphid" for every host.
What is wrong with my code? thanx in advance
Code:
{
"jsonrpc":"2.0",
"method":"graph.get",
"params":{
"output":"extend",
"filter":{
"hostids":[{
"hostid":"'.$array[$i].'"
}],
"templateids":
[{"templateid":"100100000000402"}]
},
"limit":1
},
"auth":"'.$auth.'",
"id":2
}
Comment