Ad Widget

Collapse

Help needed : compilation on AIX 5.3 failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #16
    Have you tried to compile ZABBIX agent with AIX C compiler? It works on AIX 4.x and 5.0. I do not have available AIX 5.3, I cannot test it now.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • gazzerh
      Member
      • Jun 2006
      • 36

      #17
      Has someone got a compiled version of zabbix_agentd (1.1) for aix5.2? It isn't in the download section. Whenever I try to compile myself I get the COFF error :/

      Comment

      • fips
        Member
        • Sep 2005
        • 38

        #18
        compiling with gcc

        If you like to compile the agent with gcc you have to following commands:


        ./configure --enable-agent

        make
        cd src/zabbix_agent/
        gcc -g -O2 -o zabbix_agent zabbix_agent.o ../libs/zbxsysinfo/aix.o ../libs/zbxsysinfo/common.o ../libs/zbxsysinfo/file.o ../libs/zbxsysinfo/ntp.o ../libs/zbxsysinfo/system.o ../libs/zbxsysinfo/http.o ../libs/zbxsysinfo/aix/cpu.o ../libs/zbxsysinfo/aix/diskio.o ../libs/zbxsysinfo/aix/diskspace.o ../libs/zbxsysinfo/aix/inodes.o ../libs/zbxsysinfo/aix/kernel.o ../libs/zbxsysinfo/aix/memory.o ../libs/zbxsysinfo/aix/net.o ../libs/zbxsysinfo/aix/proc.o ../libs/zbxsysinfo/aix/sensors.o ../libs/zbxsysinfo/aix/swap.o ../libs/zbxsysinfo/aix/uptime.o ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a
        make
        gcc -g -O2 -o zabbix_agentd active.o cpustat.o diskdevices.o interfaces.o logfiles.o stats.o zabbix_agentd.o ../libs/zbxsysinfo/aix.o ../libs/zbxsysinfo/common.o ../libs/zbxsysinfo/file.o ../libs/zbxsysinfo/ntp.o ../libs/zbxsysinfo/system.o ../libs/zbxsysinfo/http.o ../libs/zbxsysinfo/aix/cpu.o ../libs/zbxsysinfo/aix/diskio.o ../libs/zbxsysinfo/aix/diskspace.o ../libs/zbxsysinfo/aix/inodes.o ../libs/zbxsysinfo/aix/kernel.o ../libs/zbxsysinfo/aix/memory.o ../libs/zbxsysinfo/aix/net.o ../libs/zbxsysinfo/aix/proc.o ../libs/zbxsysinfo/aix/sensors.o ../libs/zbxsysinfo/aix/swap.o ../libs/zbxsysinfo/aix/uptime.o ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxpid/libzbxpid.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a

        cd ../..
        make

        make install


        For the server you have to find out by your self which librarys you need!

        This error came into the code with the new autoconf, I think it was 1beata10.

        Have fun

        Comment

        • gazzerh
          Member
          • Jun 2006
          • 36

          #19
          Great. That did the job.

          However the AIX agent doesn't seem to like proc.num checks. Is there a way around this?

          Comment

          • fips
            Member
            • Sep 2005
            • 38

            #20
            use UserParameters

            You can use Userparameters to get the missing values:

            # cpu load
            UserParameter=usr.cpu,uptime |cut -d, -f5
            # diskio
            UserParameter=usr.io.disk_r,iostat | grep hdisk | awk '{sum += $ 5} END {print sum}'
            UserParameter=usr.io.disk_w,iostat | grep hdisk | awk '{sum += $ 6} END {print sum}'
            # net load
            UserParameter=usr.net.in[*],netstat -v $1 | grep Bytes | awk '{printf("%d", $ 4%2^24)}'
            UserParameter=usr.net.out[*],netstat -v $1 | grep Bytes | awk '{printf("%d", $ 2%2^24)}'
            # pagings
            UserParameter=usr.paging[*],lsps -s $1 | grep % | awk '{printf("%d",$ 2)}'
            UserParameter=usr.paging.total,svmon|grep 'pg space'|awk '{printf "%.0f\n",$3*4}'
            UserParameter=usr.paging.used,svmon|grep 'pg space'|awk '{printf "%.0f\n",$4*4}'
            UserParameter=usr.paging.free,svmon|grep 'pg space'|awk '{printf "%.0f\n",($3 - $4)*4}'
            # proc count
            UserParameter=usr.proc.cnt[*],ps -eaf |grep -v grep|grep -c $1
            #cups
            UserParameter=usr.cups.cnt[*],/usr/local/bin/lpstat -P $1 |wc -l

            Comment

            • gazzerh
              Member
              • Jun 2006
              • 36

              #21
              Thanks for your help. The more and more I find things out with this program the more impressed I get.

              Well done to the developers.

              Comment

              • endorphin
                Junior Member
                • Jun 2006
                • 6

                #22
                Impossible to compile Zabbix server on AIX 5.2

                Hi Zabbix-users,

                despite all your advice, I only managed to compile Zabbix agent on my AIX 5.2 server. This has been made with gcc.
                So I try to compile the server part, an error appears with the "make" command :

                Code:
                .....
                .....
                Making all in zbxsms
                            source='sms.c' object='sms.o' libtool=no DEPDIR=.deps depmode=aix /bin/sh ./../../depcomp xlc -DHAVE_CONFIG_H -I. -I. -I../../../include         -g -c sms.c
                "sms.c", line 116.40: 1506-045 (S) Undeclared identifier CRTSCTS.
                make: The error code from the last command is 1.
                
                Stop.
                I decided to install XLC (IBM C compiler for AIX), but still the same error.....

                Please help me !

                Comment

                • mshulman1980
                  Junior Member
                  • Aug 2006
                  • 3

                  #23
                  Unable to compile on AIX5.3

                  I'm trying to install Zabbix 1.1 agent onto my AIX 5.3ML3 system, and I've tried installing XLC and I continue to get the same make error as everyone else:
                  conf.a ../libs/zbxcommon/libzbxcommon.a -lnsl
                  collect2: ../libs/zbxsysinfo/libzbxsysinfo.a: not a COFF file
                  make: 1254-004 The error code from the last command is 1.

                  Do I need to tell it to look for xlc rather then gcc or will it do that automatically?

                  Comment

                  • Hiney
                    Junior Member
                    • Aug 2006
                    • 11

                    #24
                    fibs, you da man

                    excellent work. thanks very much. i shall plow on.

                    one last thing, how are you starting the agent, in inittab ???

                    H

                    Comment

                    • Hiney
                      Junior Member
                      • Aug 2006
                      • 11

                      #25
                      mshulman1980 ...

                      mshulman1980, have you followed the instructions on the previous page for gcc ???

                      H

                      Comment

                      • Hiney
                        Junior Member
                        • Aug 2006
                        • 11

                        #26
                        zabbix user on AIX

                        Hi,

                        I have my zabbix user setup thus ... "uid=901(zabbix) gid=1(staff)". Anyone have any different, is there anything in particular people have found that needs to be added/done to the zabbix user to make it work better ?? I seem to be getting data ok.

                        the only other thing that i think i will need to do is to add it to the oracle groups so it gain access to the DB's for monitoring.

                        ta
                        H

                        Comment

                        • endorphin
                          Junior Member
                          • Jun 2006
                          • 6

                          #27
                          Compilation is possible on AIX 5L ?

                          Hello,

                          question for developper of Zabbix : is it "theorycally" possible to
                          make the compilation of Zabbix server on AIX 5.2 ? (with full functionnalities)

                          Thank you for your answer

                          Endorphin

                          Comment

                          • Aaron
                            Junior Member
                            • May 2006
                            • 16

                            #28
                            I had the same COFF file problem using gcc 3.3.2 on AIX 5.3. I was able to get it compiled and running using the fix posted by fips (thanks fips). I am still working the bugs out my config, but the zabbix agent is at least functional for me.

                            Comment

                            • flex.lima
                              Junior Member
                              • Dec 2006
                              • 2

                              #29
                              ZABBIX Agent on AIX 5L

                              Guys!
                              I had the same COF file problem in my AIX 5.3 on power, I give up to compile and to solve my problem, I used an AIX 5.1 compiled agent (http://www.zabbix.com/download2.php)
                              Extract the files zabbix_agent zabbix_agentd zabbix_sender to a folder as you wish
                              Configure the zabbix_agentd.conf and start the zabbix_agentd

                              Flex.lima

                              Comment

                              • djinn_fr22
                                Member
                                • Jan 2007
                                • 54

                                #30
                                Thanks to advices of Flips I compiled 1.1.6 on AIX 5.1

                                Comment

                                Working...