Hi,
I have been tasked with getting metric data from Zabbix and pushing it into Graphite. From the documentation it seems that the API call I want is history.get(). The return for history.get() is:
"result": [
{
"itemid": "24242",
"clock": "1406211422",
"value": "72.1399",
"ns": "620647725"
},
I'd really like to be able to have the query return the item name as well. Right now the only way I see to do this is to do the history.get() query and then iterate the results and make another query to get the item name. This is very inefficient.
Is there a better way to do this?
Thank you.
Zabbix version 2.2.5 running on Redhat.
I have been tasked with getting metric data from Zabbix and pushing it into Graphite. From the documentation it seems that the API call I want is history.get(). The return for history.get() is:
"result": [
{
"itemid": "24242",
"clock": "1406211422",
"value": "72.1399",
"ns": "620647725"
},
I'd really like to be able to have the query return the item name as well. Right now the only way I see to do this is to do the history.get() query and then iterate the results and make another query to get the item name. This is very inefficient.
Is there a better way to do this?
Thank you.
Zabbix version 2.2.5 running on Redhat.
Comment