Ad Widget

Collapse

Zabbix on AIX - Did anybody manage to compile zabbix_proxy?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan_D
    Junior Member
    • Sep 2015
    • 18

    #1

    Zabbix on AIX - Did anybody manage to compile zabbix_proxy?

    Hallo,

    I am stuck with compiling zabbix_proxy for AIX. We definetly need to use proxies in our
    environment. I have set up an AIX 6.1 instance with all the gnu tools needed to compile packages (from perzl.org).

    I have tried both version 2.2.10 and 2.4.6.

    Allthough the agent compiles successfully the proxy part throws the same error:

    [...snip...]
    Making all in zabbix_proxy
    Making all in heart
    Target "all" is up to date.
    Making all in housekeeper
    Target "all" is up to date.
    Making all in proxyconfig
    Target "all" is up to date.
    Making all in datasender
    Target "all" is up to date.
    /development/zabbix/zabbix-2.4.6/compile gcc -DZABBIX_DAEMON -DSYSCONFDIR="\"/usr/local/etc\"" -DDATADIR="\"/usr/local/share\"" -DLIBDIR="\"/usr/local/lib\"" -maix64 -I/opt/freeware/include -I/usr/include -L/usr/lib -maix64 -Wl,-bbigtoc -o zabbix_proxy zabbix_proxy-servercomms.o zabbix_proxy-events.o zabbix_proxy-proxy.o zabbix_proxy-scripts.o heart/libzbxheart.a ../../src/zabbix_server/dbsyncer/libzbxdbsyncer.a ../../src/zabbix_server/discoverer/libzbxdiscoverer.a housekeeper/libzbxhousekeeper.a ../../src/zabbix_server/httppoller/libzbxhttppoller.a proxyconfig/libzbxproxyconfig.a ../../src/zabbix_server/pinger/libzbxpinger.a ../../src/zabbix_server/poller/libzbxpoller.a ../../src/zabbix_server/trapper/libzbxtrapper.a ../../src/zabbix_server/snmptrapper/libzbxsnmptrapper.a datasender/libzbxdatasender.a ../../src/zabbix_server/selfmon/libzbxselfmon.a ../../src/zabbix_server/vmware/libzbxvmware.a ../../src/libs/zbxsysinfo/libzbxproxysysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxsysinfo/aix/libspechostnamesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxdbcache/libzbxdbcache.a ../../src/libs/zbxmemory/libzbxmemory.a ../../src/libs/zbxregexp/libzbxregexp.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxcommshigh/libzbxcommshigh.a ../../src/libs/zbxjson/libzbxjson.a ../../src/libs/zbxexec/libzbxexec.a ../../src/libs/zbxself/libzbxself.a ../../src/libs/zbxserver/libzbxserver.a ../../src/libs/zbxicmpping/libzbxicmpping.a ../../src/libs/zbxdbupgrade/libzbxdbupgrade.a ../../src/libs/zbxdbhigh/libzbxdbhigh.a ../../src/libs/zbxdb/libzbxdb.a ../../src/libs/zbxmodules/libzbxmodules.a -lsqlite3 -lm -lperfstat -liconv
    ld: 0711-224 WARNING: Duplicate symbol: Hyp_Name
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    ld: 0711-317 ERROR: Undefined symbol: .libiconv_open
    ld: 0711-317 ERROR: Undefined symbol: .libiconv
    ld: 0711-317 ERROR: Undefined symbol: .libiconv_close
    collect2: error: ld returned 8 exit status
    make: 1254-004 The error code from the last command is 1.
    Did anybody succeed with compiling the proxy part?

    Cheers!

    --Stefan
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by Stefan_D
    Hallo,

    I am stuck with compiling zabbix_proxy for AIX.
    No, you stuck on lining binaries and you are dealing wit symbol clash between libraries.
    ld it is not a compiler. It is linker.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • Stefan_D
      Junior Member
      • Sep 2015
      • 18

      #3
      Well by "compiling" I mean the whole process of building the binaries.
      Of course it's the linker. ;-)

      Do you have some advise on how to proceed from here? I even tried to link
      it towards a self-compiled version of libiconv. No success so far :-(

      ./configure --enable-proxy --enable-agent --with-sqlite3 --with-iconv-include=/usr/local/include --with-iconv=/usr/local


      Yesterday I switched to xlC. But I am now stuck with other errors.

      :-(

      Comment

      • Stefan_D
        Junior Member
        • Sep 2015
        • 18

        #4
        Hi

        Just a follow up to my own post and similar errors. Please check

        before further reading.

        In the meantime I have created an sqlite database and installed zabbix_proxy to /opt/zabbix. So far so good. But I am not able to start zabbix_proxy!
        I have enabled debug output which gives something like this in the log file:

        /opt/zabbix ># cat /tmp/zabbix_proxy.log
        7340236:20150925:154344.163 Starting Zabbix Proxy (active) [FR10 Zabbix proxy]. Zabbix 2.2.10 (revision 54806).
        7340236:20150925:154344.163 **** Enabled features ****
        7340236:20150925:154344.163 SNMP monitoring: NO
        7340236:20150925:154344.163 IPMI monitoring: NO
        7340236:20150925:154344.163 WEB monitoring: NO
        7340236:20150925:154344.163 VMware monitoring: NO
        7340236:20150925:154344.163 ODBC: NO
        7340236:20150925:154344.163 SSH2 support: NO
        7340236:20150925:154344.163 IPv6 support: NO
        7340236:20150925:154344.163 **************************
        7340236:20150925:154344.163 using configuration file: /opt/zabbix/etc/zabbix_proxy.conf
        7340236:20150925:154344.163 In load_modules()
        7340236:20150925:154344.163 End of load_modules():SUCCEED
        7340236:20150925:154344.163 In init_database_cache()
        7340236:20150925:154344.164 In zbx_mem_required_size() size:0 chunks_num:4 descr:'history cache' param:'HistoryCacheSize'
        7340236:20150925:154344.164 End of zbx_mem_required_size() size:403
        7340236:20150925:154344.164 In zbx_mem_create() descr:'history cache' param:'HistoryCacheSize' size:131011
        7340236:20150925:154344.164 zbx_shmget() removing existing shm_id:30408708
        7340236:20150925:154344.164 valid user addresses: [b00000e8, b001ffb8] total size: 130768
        7340236:20150925:154344.164 End of zbx_mem_create()
        7340236:20150925:154344.164 In zbx_mem_required_size() size:0 chunks_num:1 descr:'history text cache' param:'HistoryTextCacheSize'
        7340236:20150925:154344.164 End of zbx_mem_required_size() size:295
        7340236:20150925:154344.164 In zbx_mem_create() descr:'history text cache' param:'HistoryTextCacheSize' size:131072
        7340236:20150925:154344.164 zbx_shmget() removing existing shm_id:29360131
        7340236:20150925:154344.164 valid user addresses: [c00000f0, c001fff0] total size: 130816
        7340236:20150925:154344.164 End of zbx_mem_create()
        7340236:20150925:154344.164 End of init_database_cache()
        7340236:20150925:154344.164 In init_configuration_cache() size:4194304
        7340236:20150925:154344.164 In zbx_mem_create() descr:'configuration cache' param:'CacheSize' size:3565159
        7340236:20150925:154344.164 zbx_shmget() removing existing shm_id:55574528
        7340236:20150925:154344.164 valid user addresses: [e00000e8, e0366658] total size: 3564912
        7340236:20150925:154344.164 End of zbx_mem_create()
        7340236:20150925:154344.165 In zbx_strpool_create()
        7340236:20150925:154344.165 In zbx_mem_create() descr:'string pool' param:'CacheSize' size:629145
        7340236:20150925:154344.165 zbx_shmget() removing existing shm_id:25165829
        7340236:20150925:154344.165 cannot attach shared memory for string pool: [24] Too many open files
        So I opened it with truss to check what's wrong:

        /opt/zabbix >LIBPATH=/usr/local/lib truss sbin/zabbix_proxy -c /opt/zabbix/etc/zabbix_proxy.conf
        execve("sbin/zabbix_proxy", 0x2FF22C64, 0x20013638) argc: 3
        __loadx(0x0A040000, 0xD043565C, 0x0000000A, 0x30097218, 0xF0299000) = 0xF029C48C
        sbrk(0x00000000) = 0x3009DE50
        vmgetinfo(0x2FF225D0, 7, 16) = 0
        sbrk(0x00000000) = 0x3009DE50
        __libc_sbrk(0x00000000) = 0x3009DE50
        __loadx(0x0C000000, 0xF029BC98, 0x00000000, 0x00000000, 0x00000000) = 0x00000000
        thread_init(0x0000000000000000, 0x00000000D05106A0) =
        sbrk(0x00000000) = 0x300ADE60
        vmgetinfo(0x2FF22B20, 7, 16) = 0
        smcr_procattr(0, 1, 0x2FF22B18) Err#109 ENOSYS
        getrpid(-1, -1, -1) = 6357492
        _getpid() = 6357492
        getprocs(0x3009F3D8, 936, 0x00000000, 0, 0xF025607C, 1) = 1
        appulimit(1005, 0) = 0x20000000
        _thread_self() = 19005849
        thread_setmystate(0x00000000, 0x2FF22750) = 0
        thread_setmystate(0x2FF22438, 0x2FF22740) = 0
        _sigaction(3, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(4, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(5, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(6, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(7, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(8, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(10, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(11, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(12, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(36, 0x2FF22A98, 0x2FF22AA8) = 0
        _sigaction(39, 0x2FF22A98, 0x2FF22AA8) = 0
        __loadx(0x0E000000, 0x2FF22A80, 0x00000018, 0xF029ADE0, 0xFFFEFEFF) = 0x00000000
        kopen("/opt/zabbix/etc/zabbix_proxy.conf", O_RDONLY) = 3
        kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
        kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
        kread(3, " # T h i s i s a ".., 4096) = 4096
        kread(3, " d s .\n #\t F o r a ".., 4096) = 4096
        kread(3, " p t i o n : C a c h e".., 4096) = 3925
        kread(3, " p t i o n : C a c h e".., 4096) = 0
        close(3) = 0
        getuidx(2) = 205
        getgidx(2) = 1
        kfcntl(1, F_GETFL, 0x00000008) = 67110914
        kfcntl(2, F_GETFL, 0x00000008) = 67110914
        sigprocmask(0, 0xF0297168, 0xF0297170) = 0
        kfork() = 5767248
        thread_setmymask_fast(0x00000000, 0x00000000, 0x00000000, 0xD0530200, 0x00000000, 0x11220199, 0x11220199, 0x00000000) = 0x00000000
        kfcntl(1, F_GETFL, 0x11220199) = 67110914
        kfcntl(2, F_GETFL, 0x11220199) = 67110914
        _exit(0)
        Which is ugly, because a

        grep 109 /usr/include/errno.h

        gives me

        #define ENOSYS 109 /* Function not implemented POSIX */

        Does anybody have an idea?

        -SD

        Comment

        Working...