Ad Widget

Collapse

I want to export the zabbix history data with null

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rura6502
    Junior Member
    • Sep 2019
    • 1

    #1

    I want to export the zabbix history data with null

    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?
    Last edited by rura6502; 06-09-2019, 15:12.
Working...