Search code examples
zabbix

Zabbix custom report development


We are working on Zabbix custom report development, looking for guidance together historical data belongs to each item assigned to the host.

looking for historical data from each item mentioned in images looking for historical data from each item mentioned in images

We are researching the historical data from the database, also we got the parent data from DB but didn't get child data for a history of each item history records with different timestamps.

Those all items are mentioned in the "ITEM" table, please help us to get the required data to generate the custom graphics. we wanted to design a custom report as per the below image.

looking for design graphics using historical data looking for design graphics using historical data


Solution

  • You shouldn't access the database directly, use the API instead:

    • item.get: get informations about the item (type, query interval, key name and parameters)
    • history.get: get historycal data (full data on a specified interval)
    • trend.get: get trend data (average/min/max data with a lesser granularity)

    Each page has examples on how to interface to the api, here you can find some implementation for various languages.

    Here you can find the exact difference between history and trend data.

    Or you can use Grafana with the Zabbix Plugin.