I want to draw the chart using zibbix data and my chart library, but I have some problems. Zabbix history get API doesn`t give any data when the monitoring target is off. As an example, I want to use this data for drawing my chart.
data [null, 2, null, null, 5, 6]
time [t1, t2, t3, t4, t5]
But the zabbix API returns the data like this:
data [2, 5, 6]
time [t2, t4, t5]
I don't know how to change data returned from zabbix to data for chart OR how to get the data from zabbix in the format that I want.
How can I achieve this?
data [null, 2, null, null, 5, 6]
time [t1, t2, t3, t4, t5]
But the zabbix API returns the data like this:
data [2, 5, 6]
time [t2, t4, t5]
I don't know how to change data returned from zabbix to data for chart OR how to get the data from zabbix in the format that I want.
How can I achieve this?