I have a graph created in zabbix. I want to update this graph to include items from other hosts. For that I am calling graph.update() zabbix API using a python script. The method is updating the graph item instead of adding/appending to the existing graph item list. Does any one has idea about this ?
graph.update(graphid=graph_id,gitems=[{"itemid" :"10735", "color":"26265b"}])
where graph_id is and id of existing graph.
Thanks in advance!!
Get the existing graph items with graph.get first, then update the graph and pass all the existing items (include gitemid for these items) with your new items added.
add graph items to existing graph in zabbix using API's