O'Reilly logo

Mastering Zabbix by Andrea Dalle Vacche, Stefano Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communicating with Zabbix

Now you know how the Zabbix protocol works and so it is time to see some code that implements this protocol. To keep things easy, we have described an example of the zabbix_sender protocol, the simplest way to send data to Zabbix.

Zabbix uses JSON to describe the object contained into data. There are a lot of efficient JSON libraries that can be used, but to make things more easy here, those libraries will not be used.

Implementing Zabbix sender in Java

Here you will see a really simple implementation of the zabbix_sender protocol that as you know, is the easy way to send a trap to Zabbix.

The piece of code that follows has been kept as simple as possible and the scope is to provide an example from which you can start to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required