Fix zapcat to work with zabbix_get
Status: Beta
Brought to you by:
kjkoster
I found a couple of references in the Zabbix forums to zapcat not working with zabbix_get (e.g. http://www.zabbix.com/forum/showpost.php?p=29726&postcount=7\) because it "is not a regular Zabbix agent"; however, it only seems to be failing because it is not parsing/ignoring the 1.4 protocol header. The attached patch ignores the header ("ZBXD\1" + 64-bit length). It also adds a hex dump of "received bytes" like it does for "sent bytes" simply because I needed it for debugging.
Once applied, zabbix_get works perfectly with zapcat.
zabbix_get patch to QUeryHandler.java