Greetings and salutations!
I recently started working with the ZabbixAPI to generate Jasper Reports and I need to create a report using the ZabbixAPI to collect the data.
I have printers (hosts) that I need data from that are spread out over several Host Groups (different regions). They all use the same custom template with 2 items that are being monitored.
I need to come up with a JSON call that will get me the:
- Host Group Name (filtered - containing only the ones that start with IBM_PRINT)
- Host Name
- Count (Item in the template)
Now from what I've read the Item's last value is stored in "history" correct? So It seems I have to work my way down from Host Group to the History for the item associated with that host, in that host group right?
I have been able to get from Host Group to Hosts or from Hosts to Items or Items to History, but I can't figure out how to make the call go down more than two levels (if that is at all possible).
Any help would be appreciated. Thank you in advance for any suggestions you may have.
I recently started working with the ZabbixAPI to generate Jasper Reports and I need to create a report using the ZabbixAPI to collect the data.
I have printers (hosts) that I need data from that are spread out over several Host Groups (different regions). They all use the same custom template with 2 items that are being monitored.
I need to come up with a JSON call that will get me the:
- Host Group Name (filtered - containing only the ones that start with IBM_PRINT)
- Host Name
- Count (Item in the template)
Now from what I've read the Item's last value is stored in "history" correct? So It seems I have to work my way down from Host Group to the History for the item associated with that host, in that host group right?
I have been able to get from Host Group to Hosts or from Hosts to Items or Items to History, but I can't figure out how to make the call go down more than two levels (if that is at all possible).
Any help would be appreciated. Thank you in advance for any suggestions you may have.