Ad Widget

Collapse

Zabbix agent not loading module libzbxpgsql.so

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbaix
    Junior Member
    • Jan 2013
    • 5

    #1

    Zabbix agent not loading module libzbxpgsql.so

    Hello,

    operating system is AIX 7200-03-03-1914, zabbix agent version is 4.0.18, postgresql version is 11.5, libzbxpgsql version is 1.1.0, gcc version is 6.3.0.


    I have compiled the module successfully using the following options:

    export OBJECT_MODE=64
    CC=/usr/bin/gcc CFLAGS=-maix64 LDFLAGS="-L/zabbix_postgres/postgresql-11.5/src/interfaces/libpq" CPPFLAGS="-I/zabbix_postgres/postgresql-11.5/src/interfaces/libpq -I/zabbix_postgres/postgresql-11.5/src/include" ./configure --with-postgresql=/zabbix_postgres/postgresql-11.5/src/bin/pg_config/pg_config --with-zabbix=/zabbix_postgres/zabbix-4.0.18


    Everything looks alright after compilation:

    #file /zabbix_postgres/libzbxpgsql-1.1.0/src/.libs/libzbxpgsql.so
    /zabbix_postgres/libzbxpgsql-1.1.0/src/.libs/libzbxpgsql.so: 64-bit XCOFF executable or object module not stripped

    #ldd /zabbix_postgres/libzbxpgsql-1.1.0/src/.libs/libzbxpgsql.so
    /zabbix_postgres/libzbxpgsql-1.1.0/src/.libs/libzbxpgsql.so needs:
    /opt/freeware/lib/libgcc_s.a(shr.o)
    /usr/lib/libc.a(shr_64.o)
    /zabbix_postgres/postgresql-11.5/src/interfaces/libpq/libpq.a(libpq.so.5)
    /opt/freeware/lib/libconfig.a(libconfig.so.9)
    /unix
    /usr/lib/libcrypt.a(shr_64.o)
    /usr/lib/libpthreads.a(shr_xpg5_64.o)


    When I try to start zabbix agent, it does not start and I get the following errors in the log file:

    31654206:20200330:172547.069 Starting Zabbix Agent [HOSTNAME]. Zabbix 4.0.18 (revision 688cd21456).
    31654206:20200330:172547.069 **** Enabled features ****
    31654206:20200330:172547.069 IPv6 support: NO
    31654206:20200330:172547.069 TLS support: NO
    31654206:20200330:172547.069 **************************
    31654206:20200330:172547.070 using configuration file: /etc/zabbix/zabbix_agentd.conf
    31654206:20200330:172547.070 In zbx_load_modules()
    31654206:20200330:172547.070 loading module "/zabbix/modules/libzbxpgsql.so"
    31654206:20200330:172547.070 Got signal [signal:4(SIGILL),reason:30,refaddr:0]. Crashing ...
    31654206:20200330:172547.070 ====== Fatal information: ======
    31654206:20200330:172547.070 program counter not available for this architecture
    31654206:20200330:172547.070 === Registers: ===
    31654206:20200330:172547.070 register dump not available for this architecture
    31654206:20200330:172547.070 backtrace is not available for this platform
    31654206:20200330:172547.070 === Memory map: ===
    31654206:20200330:172547.070 memory map not available for this platform
    31654206:20200330:172547.070 ================================


    Does anyone have any idea how to remedy this?

    In any case, thank you for attention.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    SIGILL is illegal instruction.

    Either your zabbix_agentd or your libpq was compiled for a different architecture than what you're trying to run it on. Or, the version of gcc you used generated machine code for a different architecture than the one you're trying to run it on.

    If you built this yourself, you may try using different gcc flags, telling it to assume an older or more generic architecture, to see if that makes a difference.

    I'm a little confused why your *agent* is trying to link against database libraries. Typically, that's only needed for the zabbix server component. The agent shouldn't be trying to access your database.

    Comment

    Working...