Do you use Zabbix for monitoring devices? Is there a device you’d like to monitor that you just can’t manage to install the Zabbix agent on? This was the situation I found myself in, when trying to fill a gap in wi-fi coverage with a spare TL-WA801ND access point. While I could and did put OpenWRT on it, there was just not enough space left for either
Luckily, Zabbix’s data format is regular old json and the transmission protocol is simple and documented, so you can put together an alternative to
zabbix_sender in shell script that takes up 100 times fewer precious bytes.
It’s not a complete replacement, but it covers the essentials. Well, unless you count TLS support among essentials. TLS support can be added by replacing
nc with TLS-capable
ncat, but the mammoth 208kB size of that is far beyond what my humble TL-WA801ND can accomodate.
I would like to figure out how to emulate
zabbix_agentd with this method, but the OpenWRT image for devices with 4MB of storage comes with busybox that only implements nc sending and ommits listening funcionality, so it appears complicated, if not impossible. If you have any ideas on how to do that, please send them to ‘comments’ at this domain.