Here’s a bootstrap C function for Zabbix Discovery rules.
I’m often writing custom discovery (and standard check) functions for the Windows Zabbix agent
instead of using external script. It is faster and more efficient than calling external scripts but
also some challenges have been too difficult without native API access (e.g. finding the GUID of a
With each new function I’ve been referencing old samples for the basic conventions of Zabbix item
function so I’ve taken the time to write a template and I hope it will be of benefit to you also.
If you’re creating a new C file for your function, make sure to include it in
build/win32/project/Makefile_agent.inc or the appropriate files.