Working with Zabbix protocols
Zabbix protocols are quite simple; this is a strong point because it is simple to implement your own custom agent or software that sends data to Zabbix.
Zabbix supports different versions of protocols. We can divide the protocols into three families:
Zabbix get
Zabbix sender
Zabbix agent
The Zabbix get protocol
The Zabbix get protocol is really simple and easy to implement. Practically, you only need to send data to your Zabbix server at the port 10050
.
This protocol is so simple that you can implement it with a shell script as well:
This is a textual protocol and is used to retrieve data from the agent directly. [root@zabbixserver]# telnet 127.0.0.1 10050 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. agent.version ZBXD2.0.6Connection closed by foreign host.
This example shows you how to retrieve the agent version simply with a telnet. Please note that the data is returned with a header that is ZBXD
, followed by the data that represents the actual...