I need to implement some web checks in our Zabbix system which requires Zabbix to be compiled with the libcurl
(curl) option, but I don't know how to check if it was compiled with this option or not, Is there any command or file which will assist me in finding the answer?
You need to use
ldd(1)
to print shared library dependencies. If thezabbix-agent
was compiled withcurl
suppport, it was linked dynamically against thelibcurl
library in compilation time.I don't have a zabbix installation handy right now, but the procedure is simple:
You should see
libcurl
in the output. Just replacecurl
withzabbix-agent
.I wanted to expand on dawud's answer, which was correct, but somewhat incomplete.
My environment is Debian Buster amd64 and Zabbix 4.4.5 rev b93f5c4fc0
I needed to see if pre-compiled
zabbix_server
from Zabbix repo was compiled withlibxml2
andlibcurl
for VMware monitoring, as per this article https://www.zabbix.com/documentation/current/manual/vm_monitoringSo I performed:
Which resulted in:
The same can obviously be done with zabbix_agent