Ad Widget

Collapse

PATCH: Zabbix 1.4.4 AIX agent patch

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hoyt
    Member
    • Aug 2007
    • 31

    #1

    PATCH: Zabbix 1.4.4 AIX agent patch

    This patch adds the following items on AIX 5.X systems:
    system.cpu.util[]
    system.cpu.util[]
    system.uptime
    net.if.in[]
    net.if.out[]
    system.cpu.switches
    system.cpu.intr
    system.cpu.load[]
    system.cpu.runque
    system.cpu.swpque
    vm.memory.size[free]
    vm.memory.size[inuse]
    vm.memory.size[numperm]
    vm.memory.size[process]
    vm.memory.size[system]
    vm.memory.size[total]
    vm.memory.size[totalvm]
    vm.memory.size[user]

    I am not sure if this patch will work on AIX 4.X systems, don't have any to test on.

    Work still do be done is adding disk I/O items.

    --John
    Attached Files
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    i just wanted to express huge interest in seeing this patch in 1.4 branch, if possible
    Zabbix 3.0 Network Monitoring book

    Comment

    • tighep
      Senior Member
      • Dec 2007
      • 124

      #3
      Maybe I'm just a complete newb at using patch, oh wait I am. Why oh why does patch say "Hmm... I can't seem to find a patch in there anywhere.
      "

      Comment

      • hoyt
        Member
        • Aug 2007
        • 31

        #4
        Originally posted by tighep
        Maybe I'm just a complete newb at using patch, oh wait I am. Why oh why does patch say "Hmm... I can't seem to find a patch in there anywhere.
        "
        What was the command that you used??

        Should be something like:
        % cd <zabbix_src>
        % patch -p1 < <path_to_patch_file>/aix.patch


        --John

        Comment

        • tighep
          Senior Member
          • Dec 2007
          • 124

          #5
          Oddly it appears to be an AIX patch issue, I moved the source to linux, ran the patch, and moved the source back. However, I still get a not supported with trying to use system.cpu.load. This is AIX 5.2 TL8 CSP.

          Comment

          • hoyt
            Member
            • Aug 2007
            • 31

            #6
            What do your items look like? Are any of the other new items working?

            Here is what my load item keys look like:
            system.cpu.load[,avg1]
            system.cpu.load[,avg5]
            system.cpu.load[,avg15]


            --John

            Comment

            • tighep
              Senior Member
              • Dec 2007
              • 124

              #7
              spd07: /usr/opt/zabbix/sbin > ./zabbix_agentd -t system.cpu.load[,avg1]
              system.cpu.load[,avg1] [m|ZBX_NOTSUPPORTED]
              spd07: /usr/opt/zabbix/sbin > ./zabbix_agentd -t system.cpu.swpque
              system.cpu.swpque [m|ZBX_NOTSUPPORTED]


              I wonder if maybe the patch didn't take correctly, or if it's an AIX 5.3 fix. I will also try and apply to patch to my 5.3 build and report back a result.

              Comment

              • hoyt
                Member
                • Aug 2007
                • 31

                #8
                Durning the run of configure look for the following:
                checking for perfstat_cpu_total in -lperfstat... yes

                If it says 'no', then you don't have the Perfstat library. I am not
                sure when it showed up in AIX. It could be an optional package.

                Here is a link to the IBM docs:



                I only have 5.3 system to test on.

                --John

                Comment

                • tighep
                  Senior Member
                  • Dec 2007
                  • 124

                  #9
                  I don't see
                  checking for perfstat_cpu_total in -lperfstat... yes
                  at all in my config.log or the screen output. Is there an option I need to add to the configure lines? My command looks like this:

                  ./configure --enable-agent --disable-server --without-jabber --without-ucd-snmp --without-net-snmp --without-pgsql --without-mysql --prefix=/usr/opt/zabbix --enable-static

                  Is there a manual way to verify the patch has been installed into the source files?

                  Comment

                  • hoyt
                    Member
                    • Aug 2007
                    • 31

                    #10
                    Take a look at zabbix/src/include/config.h.in , You should find the following
                    if the patch was applied correctly:
                    /* Define to 1 if you have the `perfstat' library (-lperfstat). */
                    #undef HAVE_LIBPERFSTAT

                    --John

                    Comment

                    • tighep
                      Senior Member
                      • Dec 2007
                      • 124

                      #11
                      Somehow the patch didn't apply, a second run with the patch command provided the needed additions. Now I am getting data, thank you very much for the patch and the help.

                      Comment

                      • hoyt
                        Member
                        • Aug 2007
                        • 31

                        #12
                        Does this patch work with your AIX 5.2 system??

                        --John

                        Comment

                        • tighep
                          Senior Member
                          • Dec 2007
                          • 124

                          #13
                          Yes, this patch works on both my AIX 5.2 and 5.3 systems. I currently don't monitor an AIX 4 box, but I do still have one. I'll see if it has a compiler available and test it.

                          Comment

                          • thiago.info
                            Junior Member
                            • Feb 2008
                            • 28

                            #14
                            I'm trying to compile the zabbix-1.4.4 agentd in my AIX 5.3. I applied the patch with no problem, but when I run the:

                            Code:
                            ./configure --enable-agent --disable-server --without-jabber --without-ucd-snmp --without-net-snmp --without-pgsql --without-mysql --prefix=/usr/opt/zabbix --enable-static
                            I get these warnings about pthread:

                            Code:
                            checking sys/resource.h presence... yes
                            checking for sys/resource.h... yes
                            checking pthread.h usability... no
                            checking pthread.h presence... yes
                            configure: WARNING: pthread.h: present but cannot be compiled
                            configure: WARNING: pthread.h:     check for missing prerequisite headers?
                            configure: WARNING: pthread.h: see the Autoconf documentation
                            configure: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
                            configure: WARNING: pthread.h: proceeding with the preprocessor's result
                            configure: WARNING: pthread.h: in the future, the compiler will take precedence
                            checking for pthread.h... yes
                            checking windows.h usability... no
                            checking windows.h presence... no
                            checking for windows.h... no
                            If i try to do a make install:

                            Code:
                            make install
                            Making install in create
                            Making install in schema
                            Target "install-exec-am" is up to date.
                            Target "install-data-am" is up to date.
                            Target "install" is up to date.
                            Target "install-exec-am" is up to date.
                            Target "install-data-am" is up to date.
                            Target "install" is up to date.
                            Making install in misc
                            Target "install-exec-am" is up to date.
                            Target "install-data-am" is up to date.
                            Target "install" is up to date.
                            Making install in src
                            Making install in libs
                            Making install in zbxcrypto
                                    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include      -g -O2  -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.c;  then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi
                            In file included from ../../../include/sysinc.h:198,
                                             from ../../../include/common.h:23,
                                             from md5.c:54:
                            /usr/include/pthread.h:582: error: parse error before '*' token
                            /usr/include/pthread.h:585: error: parse error before '*' token
                            /usr/include/pthread.h:589: error: parse error before '*' token
                            /usr/include/pthread.h:592: error: parse error before '*' token
                            /usr/include/pthread.h:595: error: parse error before '*' token
                            /usr/include/pthread.h:598: error: parse error before '*' token
                            /usr/include/pthread.h:601: error: parse error before '*' token
                            /usr/include/pthread.h:604: error: parse error before '*' token
                            /usr/include/pthread.h:607: error: parse error before '*' token
                            /usr/include/pthread.h:611: error: parse error before '*' token
                            /usr/include/pthread.h:614: error: parse error before '*' token
                            /usr/include/pthread.h:625: error: parse error before '*' token
                            /usr/include/pthread.h:629: error: parse error before '*' token
                            /usr/include/pthread.h:652: error: parse error before '*' token
                            /usr/include/pthread.h:655: error: parse error before '*' token
                            /usr/include/pthread.h:658: error: parse error before '*' token
                            /usr/include/pthread.h:661: error: parse error before '*' token
                            /usr/include/pthread.h:664: error: parse error before '*' token
                            /usr/include/pthread.h:672: error: parse error before '*' token
                            /usr/include/pthread.h:675: error: parse error before '*' token
                            /usr/include/pthread.h:678: error: parse error before '*' token
                            /usr/include/pthread.h:681: error: parse error before '*' token
                            /usr/include/pthread.h:689: error: parse error before '*' token
                            /usr/include/pthread.h:693: error: parse error before '*' token
                            /usr/include/pthread.h:696: error: parse error before '*' token
                            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.
                            I really don't know what to do! help please!!!


                            Thiago

                            Comment

                            • hoyt
                              Member
                              • Aug 2007
                              • 31

                              #15
                              What version of gcc are you using? I had this problem on AIX systems that had a *really* old version of gcc installed (v2.9).
                              You can get a newer gcc from:



                              --John

                              Comment

                              Working...