Ad Widget

Collapse

Zabbix 1.8.5 agents for AIX 7.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hirschnf
    Member
    • Jan 2010
    • 56

    #1

    Zabbix 1.8.5 agents for AIX 7.1

    Here are some instructions to compile the zabbix agent on a AIX 7.1 system.
    Perhaps some RPM packages are not needed to compile but it was from need to test some things to solve it.
    Here are the steps I've done:

    1. check my old dependecy list when I have compiled the agent on AIX 5.3
    Code:
    # rpm -qa |grep expat
    	expat-2.0.1-2
    	# rpm -qa |grep gettext
    	gettext-0.17-1
    	# rpm -qa |grep glib2
    	glib2-2.8.1-3
    	# rpm -qa |grep libiconv
    	libiconv-1.13.1-1
    2. After this I started my first "./configure --enable-agent --prefix=/opt/zabbix" and "make install" on AIX 7.1
    My first mistake was that I have forgot the C-Compiler on this system .
    So I have installed different packages, I've listed here:

    Code:
    rpm -ivh gcc-4.2.0-3.aix6.1.ppc.rpm
    	rpm -ivh libgcc-4.2.0-3.aix6.1.ppc.rpm
    	rpm -ivh gcc-locale-4.2.0-3.aix6.1.ppc.rpm
    	rpm -ivh libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
    	rpm -ivh libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
    	rpm -ivh gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm
    	rpm -ivh m4-1.4.15-1.aix6.1.ppc.rpm
    	rpm -ivh autoconf-2.68-1.aix6.1.noarch.rpm
    3. After every rpm installation I tested the ./configure command but every time it tells me some warnings like:

    Code:
    checking libperfstat.h usability... no
    	checking libperfstat.h presence... yes
    	configure: WARNING: libperfstat.h: present but cannot be compiled
    	configure: WARNING: libperfstat.h: 		check for missing prerequisite headers?
    	...
    and the make command failed.


    4. So as I said, perhaps some packages are not needed to install.
    The solution I have found here: http://markmail.org/message/dx4ou74z...+state:results

    I searched for a file with the entry "libperfstat.h"
    Then I modified the file ./include/sysinc.h:

    Code:
    #ifdef HAVE_LIBPERFSTAT
    	#       include <sys/protosw.h>
    	#       include <libperfstat.h>
    	#endif
    5. Finally I started the "./configure --enable-agent --prefix=/opt/zabbix" and "make install" again.
    After the compilation I started the zabbix_agentd.
  • hirschnf
    Member
    • Jan 2010
    • 56

    #2
    Zabbix 1.8.7 agents on AIX 7.1

    Hello again,

    Zabbix 1.8.7 also runs quite good on AIX 7.1
    The same thing as in the previous version is that I need to modify ./include/sysinc.h.

    Code:
    #ifdef HAVE_LIBPERFSTAT
    	#       include <sys/protosw.h>
    	#       include <libperfstat.h>
    	#endif
    Has anybody tested too? Do you get the same result?

    Comment

    • jerry2049
      Junior Member
      • Sep 2011
      • 20

      #3
      This is the first time I heard using the RPM package can be successfully installed!

      Hi,hirschnf

      I want to ask u a question

      when I installed zabbix_agentd in aix6.1 and execute command

      ./configure --prefix=/usr/local/zabbix --enable-agent && \
      make && \
      make install

      the warning is:

      configure: WARNING: libperfstat.h: present but cannot be compiled
      configure: WARNING: libperfstat.h: check for missing prerequisite headers?
      configure: WARNING: libperfstat.h: see the Autoconf doumentation
      configure: WARNING: libperfstat.h: section"present but cannot Be compiled"
      configure: WARNING: libperfstat.h: proceeding with the compiler's result

      I didn't download specifically for the AIX version of zabbix_agentd

      I just download this one
      wget http://prdownloads.sourceforge.net/z...ar.gz?download

      All of the zabbix_server and zabbix_agentd are all use it

      I think I I also lack of which the installation package

      Can u tell me what is the package?

      Comment

      • hirschnf
        Member
        • Jan 2010
        • 56

        #4
        Hello jerry2049,

        I downloaded the source files from then zabbix website http://www.zabbix.com/download.php

        This configure messages I get always but after the modification of the h-file I can run the make install command and the agent runs.

        There is a second thing what you need to do.
        Perhaps the libiconv.a in /usr/lib is not the newest after you have installed the rpm packages. in this case I set a symbolic link
        Code:
        libiconv.a -> ../../../opt/freeware/lib/libiconv.a

        Comment

        • jerry2049
          Junior Member
          • Sep 2011
          • 20

          #5
          hello,hirschnf

          Thank you for your reply to my question, and give me good advice

          This is my Detailed error information

          u means modify ./include/sysinc.h?






          Configuration:

          Detected OS: aix6.1.0.0
          Install path: /usr/local/zabbix
          Compilation arch: aix

          Compiler: gcc
          Compiler flags: -g -O2

          Enable server: no

          Enable proxy: no

          Enable agent: yes
          Agent details:
          Linker flags:
          Libraries: -lm -lperfstat -liconv

          LDAP support: no
          IPv6 support: no

          ************************************************** *********
          * Now run 'make install' *
          * *
          * Thank you for using Zabbix! *
          * <http://www.zabbix.com> *
          ************************************************** *********

          Making all in src
          Making all in libs
          Making all in zbxcrypto
          gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.c
          In file included from /usr/include/sys/corral.h:25,
          from /usr/include/libperfstat.h:28,
          from ../../../include/sysinc.h:290,
          from ../../../include/common.h:23,
          from md5.c:54:
          /usr/include/netinet/in6_var.h:65: error: array type has incomplete element type
          make: 1254-004 The error code from the last command is 1.


          Stop.
          make: 1254-004 The error code from the last command is 1.


          Stop.
          make: 1254-004 The error code from the last command is 1.


          Stop.
          make: 1254-004 The error code from the last command is 1.


          Stop.
          bash-3.2#

          Comment

          • hirschnf
            Member
            • Jan 2010
            • 56

            #6
            you are right.
            I've tested it for a few minutes and the Agent is running - on AIX 6.1
            with zabbix Agent 1.8.7...

            Comment

            • jerry2049
              Junior Member
              • Sep 2011
              • 20

              #7
              Originally posted by hirschnf
              you are right.
              I've tested it for a few minutes and the Agent is running - on AIX 6.1
              with zabbix Agent 1.8.7...
              Thankyou

              But my error information is included this one
              /usr/include/netinet/in6_var.h:65: error: array type has incomplete element type

              I will to try it first

              Have you tried using RPM package installation zabbix_agentd on aix6.1?

              Like this

              Comment

              • hirschnf
                Member
                • Jan 2010
                • 56

                #8
                hmm,
                But my error information is included this one
                /usr/include/netinet/in6_var.h:65: error: array type has incomplete element type
                I don't know why. When do you get this message?
                At configure or when you do the make install command?

                I have compiled the sources and don't use a rpm package.
                Therefore you need a compiler (gcc-4.2.0....rpm)

                Have a look at my steps:
                1. install the four rpm packages + the gcc package
                2. change the path for libiconv.a
                3. change the .h file
                4. configure command
                5. make install command
                6. create zabbix user
                7. create your zabbix_agentd.conf file
                8. make sure the zabbix user can write the logfile, PID file and read the config file
                9. start agent

                Comment

                • hirschnf
                  Member
                  • Jan 2010
                  • 56

                  #9
                  libiconv.a makes trouble

                  it seems it is not a good way to rename the libiconv.a in /usr/lib.

                  Code:
                  libiconv.a -> ../../../opt/freeware/lib/libiconv.a
                  I am looking for an other way

                  Comment

                  • jerry2049
                    Junior Member
                    • Sep 2011
                    • 20

                    #10
                    Hello,hirschnf

                    u have been successfully installed zabbix_agentd

                    right?

                    So...Pls help me

                    Pls check it my configuration


                    ************************************************** *****************************
                    # bash
                    bash-3.2# rpm -qa | grep gcc
                    gcc-4.2.0-3
                    libgcc-4.2.0-3
                    gcc-c++-4.2.0-3
                    gcc-gfortran-4.2.2-1

                    what's the libiconv.a and how to installed?

                    Comment

                    • hirschnf
                      Member
                      • Jan 2010
                      • 56

                      #11
                      right?
                      yes, thats right.

                      Install these RPM-Packages:
                      rpm -ivh expat-2.0.1-1.aix5.2.ppc.rpm
                      rpm -ivh gettext-0.17-1.aix5.1.ppc.rpm --nodeps
                      rpm -ivh glib2-2.12.4-1.aix5.2.ppc.rpm
                      rpm -ivh libiconv-1.13.1-1.aix5.1.ppc.rpm

                      and for compilation
                      rpm -ivh gcc-4.2.0-3.aix6.1.ppc.rpm

                      Then unzip the zabbix sources.
                      Modify the source file ./include/sysinc.h
                      Code:
                      #ifdef HAVE_LIBPERFSTAT
                      #       include <sys/protosw.h>
                      #       include <libperfstat.h>
                      #endif
                      In the zabbix directory start the configure command:
                      ./configure --enable-agent –-prefix=/opt/zabbix_version –-libdir=/opt/freeware/lib

                      You can change your --prefix to the path you need.
                      After the command "make install" I copy the files from this directory manually to /usr/local.

                      So you don't need to do anything with the libiconv.a

                      Do you know how to start the agent?

                      Comment

                      • jerry2049
                        Junior Member
                        • Sep 2011
                        • 20

                        #12
                        Hi,hirschnf

                        Thank you so much for your help

                        According to your method, I have succeeded

                        Comment

                        • hirschnf
                          Member
                          • Jan 2010
                          • 56

                          #13
                          It was a pleasure for me to help you. So please test the agent intensive to check, whether there are any problems.
                          Perhaps the development will have a look on this thread to solve the modification of the source file?

                          Comment

                          • angelhc
                            Senior Member
                            Zabbix Certified Specialist
                            • Nov 2009
                            • 226

                            #14
                            Hi all!
                            It's possible to redirect the .lib if we use the pre-compilated agent?
                            Thanks
                            Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

                            http://zabbixes.wordpress.com/

                            Comment

                            • Zsolti
                              Junior Member
                              • Jul 2013
                              • 1

                              #15
                              Originally posted by hirschnf
                              yes, thats right.

                              Install these RPM-Packages:
                              rpm -ivh expat-2.0.1-1.aix5.2.ppc.rpm
                              rpm -ivh gettext-0.17-1.aix5.1.ppc.rpm --nodeps
                              rpm -ivh glib2-2.12.4-1.aix5.2.ppc.rpm
                              rpm -ivh libiconv-1.13.1-1.aix5.1.ppc.rpm

                              and for compilation
                              rpm -ivh gcc-4.2.0-3.aix6.1.ppc.rpm

                              Then unzip the zabbix sources.
                              Modify the source file ./include/sysinc.h
                              Code:
                              #ifdef HAVE_LIBPERFSTAT
                              #       include <sys/protosw.h>
                              #       include <libperfstat.h>
                              #endif
                              In the zabbix directory start the configure command:
                              ./configure --enable-agent –-prefix=/opt/zabbix_version –-libdir=/opt/freeware/lib

                              You can change your --prefix to the path you need.
                              After the command "make install" I copy the files from this directory manually to /usr/local.

                              So you don't need to do anything with the libiconv.a

                              Do you know how to start the agent?
                              Hello, hirschnf

                              i just compilied agent and java gateway on AIX 7.1 with your help-lines, but i'm unable to compile the proxy on the same server:
                              Code:
                              ld: 0711-317 ERROR: Undefined symbol: .libiconv_open
                              ld: 0711-317 ERROR: Undefined symbol: .libiconv
                              ld: 0711-317 ERROR: Undefined symbol: .libiconv_close
                              ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.


                              did you already compile a proxy on AIX7.1 ?

                              cheers - zsolt

                              PS: to be honest i've got another versions of rpm's:
                              Code:
                              expat-2.1.0-1
                              gettext-0.17-1
                              glib2-2.36.3-1
                              libiconv-1.14-2
                              gcc-4.8.1-1

                              Comment

                              Working...