Hi,
We're running Zabbix Server 1.8.11 from Ubuntu 12.04 package, and we noticed Zabbix Agent (also 1.8.11) doesn't come with cURL support.
So I downloaded the source and checked online for compiling with cURL support. First I made sure the dev libraries were installed:
I then tried to compile the agent (since it's doing the fetching) with:
This didn't pick up any of the curl libraries, and didn't even attempt to do find them. It seems it won't let you compile the agent alone with cURL, I had to configure with server too:
This time I got the output I wanted:
zabbix_server was linked against libcurl:
But the agent isn't:
What am I doing wrong?
We're running Zabbix Server 1.8.11 from Ubuntu 12.04 package, and we noticed Zabbix Agent (also 1.8.11) doesn't come with cURL support.
So I downloaded the source and checked online for compiling with cURL support. First I made sure the dev libraries were installed:
Code:
ii libcurl3 7.22.0-3ubuntu4.2 Multi-protocol file transfer library (OpenSSL) ii libcurl3:i386 7.22.0-3ubuntu4.2 Multi-protocol file transfer library (OpenSSL) ii libcurl3-gnutls 7.22.0-3ubuntu4.2 Multi-protocol file transfer library (GnuTLS) ii libcurl4-openssl-dev 7.22.0-3ubuntu4.2 Development files and documentation for libcurl (OpenSSL)
Code:
./configure --prefix=/usr --with-libcurl --enable-agent
Code:
./configure --prefix=/usr --with-mysql --with-net-snmp --with-libcurl --enable-agent --enable-server
Code:
WEB Monitoring via: cURL
..
Linker flags: -rdynamic -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib -L/usr/lib
Libraries: -lm -lresolv -lmysqlclient -lcurl -lnetsnmp -lcrypto -lnetsnmp -lcrypto
Code:
# ldd src/zabbix_server/zabbix_server .. libcurl.so.4 => /usr/lib/x86_64-linux-gnu/libcurl.so.4 (0x00007fbb653a3000)
Code:
# ldd src/zabbix_agent/zabbix_agentd linux-vdso.so.1 => (0x00007fff411ff000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f67884de000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f678811f000) /lib64/ld-linux-x86-64.so.2 (0x00007f678870a000)