Ad Widget

Collapse

What libraries are required for the agent/agentd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aladenov
    Junior Member
    • May 2012
    • 8

    #1

    What libraries are required for the agent/agentd

    As noticed in a previous bug, if you try to compile with --enable-static and --with-ldap, the compile fails with a host of errors. Since I dont see any updates, I assume this is still outstanding.

    So related to that, when running configure, what options are meaningful only for the server, the server and proxy, and server, proxy, and agent.

    Ie, does --with-ldap (or mysql, ssh2, libcurl, net-snmp, or any others i used) have any meaning/use in the zabbix-agent code, or can I just "./configure --enable-agent --enable-static" with no loss of functionality.
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #2
    Can anyone reply to this? What libraries does default zabbix_agentd relies on?

    Also why is official zabbix_agnet is 300 KB and when I compile its 2.5 MB?

    Code:
    root@server: ldd zabbix_agentd
    not a dynamic executable
    root@server: readelf -d zabbix_agentd
    There is no dynamic section in this file
    I guess only libc6 is needed for all servers and libcurl if we use web-moniotring?? . I think ldap is only needed for zabbix_server.

    Code:
    root@server: cat DEBIAN/control
    Depends: libc6 (>= 2.7), libcurl3-gnutls (>= 7.16.2-1), libldap-2.4-2 ( >= 2.4.7), debconf (>= 0.5) | debconf-2.0, adduser, ucf, lsb-base

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      Official agent is a dynamic link.
      It works by calling the necessary libraries at runtime.

      If you have a static link, because it contains the required library is also within the executable file, the larger the file size.

      Comment

      Working...