[#4996] - Data adapter for Zabbix API

Feature request
Project: Severity:
Component: Reproducibility:
Assigned to:

How about supporting Zabbix API by a dedicated data adapter?

Zabbix is an enterprise-class open source distributed monitoring solution.

The Zabbix API uses the JSON-RPC 2.0 protocol and is therefore hopefully easy to implement.

Using the Database JDBC Connection data adapter is possible. But the API correlates and resolves a lot of things programmatically, that are either not that easy or not at all doable with pure SQL.

Zabbix generally owns tons of valuable data. There are many people (way more than the following ticket indicates) which call for good reports:

However, even when not that familiar (yet) with JasperReports and its competitors, I believe reports should be delegated to a proper report engine than doing it by the application itself.

I think having a native data adapter available would fill the gap of good reports in Zabbix and could make JasperReports as _the_ solution for high value reports in Zabbix.

Might be worth to mention that there also already exists a Zabbix API library for Java:

This blog post might also be of interest as it shows how to use the Zabbix API by the example of Perl:

Data Adapters
g6055305's picture
Joined: Jun 28 2015 - 1:19pm
Last seen: 8 years 2 months ago



Hi, I'm currently playing with Zabbix -> Jasperreports using the API.
The combination using pure Zabbix API is currently possible. This excludes the use of images since the API cannot export them.
Using the webservice data source plugin for Jasperreports ( http://community.jaspersoft.com/project/web-service-data-source ) you can connect to Zabbix.
In my case I was trying to put as much as possible into the Jasper report. so I created a report that has no element other then a subreport. The main report's dataset simply logs in the the api to get a session. that session it then send along to the subreport to allow it to be used in the datasource of the subreport. In that subreport, you will likely need more subreports or datasources for tables etc. So it does get a bit complex fast.
If this is still something you are interested in. Feel free to contact me.


I use scriptlets to authenticate to the Zabbix API:

  • Reproducibility:Not Attempted» Always

I am new to JasperStudio / Report Server and a little lost on how to use the Zabbix API with your tools, I have gotten the JDBC connection to the mysql working and that is fine for the simple list. I wanted to use the API for some more complex reports.

I have the data connector to the API and the user.login method returns there token I need for any additional queries.

How do I get that token to the next query?