Ad Widget

Collapse

AIX system.uptime is wrong

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crlf
    Junior Member
    • Mar 2013
    • 13

    #1

    AIX system.uptime is wrong

    I have a few AIX servers, and zabbix is reporting wrong uptimes for a few of them...

    One of the machines (AIX 6.1) has 685+ days of uptime, but zabbix reports a little more than 188 days.

    Another one (AIX 5.3) has 248+ days of uptime, but zabbix reports 0.

    It seems that although AIX knows its correct uptime, zabbix (2.0.6) is letting it wrap around.

    Is there any way to work around this?
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Can't confirm that behavior.
    I just took four samples of AIX (6.1.0.0) servers and the uptime collected by Zabbix equates to uptime command issued from the shell.

    Edit:
    The sampled servers run either zabbix_agentd in version 2.0.6 or 2.0.4.
    Last edited by BDiE8VNy; 03-05-2013, 17:13.

    Comment

    • crlf
      Junior Member
      • Mar 2013
      • 13

      #3
      The thing is: I have two other machines that report correct uptime, but they have both been up for just around 22 days. It is the longer uptime machines that don't report correct values.

      This looks like a 32bit vs 64bit problem. The zabbix agent binaries in the download section of the site are 32bit:

      "zabbix_agentd: executable (RISC System/6000) or object module"

      I don't have a compiler available for this platform (neither on the 5.3 nor 6.1 boxes), so I can't try building it for 64bit.

      Comment

      • BDiE8VNy
        Senior Member
        • Apr 2010
        • 680

        #4
        (attachement removed) includes the release 2.0.6 zabbix_agentd 64bit binary only.

        Code:
        # oslevel
        6.1.0.0
        
        # CFLAGS='-maix64' OBJECT_MODE='64' ./configure --enable-agent
        
        # make
        
        # OBJECT_MODE='64' strip src/zabbix_agent/zabbix_agentd
        
        # file src/zabbix_agent/zabbix_agentd
        src/zabbix_agent/zabbix_agentd: 64-bit XCOFF executable or object module
        
        # gzip src/zabbix_agent/zabbix_agentd
        
        # openssl dgst -sha256 src/zabbix_agent/zabbix_agentd.gz 
        SHA256(src/zabbix_agent/zabbix_agentd/zabbix_agentd.gz)= bdff4580aa6c8e119791a2afd9f5def84ff40d741ea540bc63e7db5430236d7f
        Last edited by BDiE8VNy; 04-05-2013, 08:34. Reason: attachement removed and corrected strip command

        Comment

        • crlf
          Junior Member
          • Mar 2013
          • 13

          #5
          Actuall, I ended up compiling (the AIX 5.3 machine had gcc installed and I installed it also on one of the 6.1 machines).

          Now, with a 64bit agent it reports uptime correctly.

          My compilation steps were slightly different from yours:

          Code:
          CFLAGS='-maix64' ./configure --enable-agent
          
          # On AIX 6.1 edit include/config.h and add, to the top:
          #    #include <sys/protosw.h>
          # Ref: https://www-304.ibm.com/support/docview.wss?uid=isg1IV01736
          
          make ARFLAGS="-cru -X64"
          
          strip -X64 src/zabbix_agent/zabbix_agentd

          Comment

          • BDiE8VNy
            Senior Member
            • Apr 2010
            • 680

            #6
            crlf,

            what about opening a Jira ticket for this issue to get this behavior mentioned in documentation?

            Comment

            • zerocool
              Member
              Zabbix Certified Specialist
              • Jul 2007
              • 33

              #7
              Need Agent compile 64bit on AIX 5.3

              Hi ,
              i read that you compile the zabbix agent to 64bit on AIX 5.3 or 6.1 .
              Can I ask you to "pass" the package that contains this 64bit compiled agent for AIX 5.3?
              I thank you in advance.

              Regads,
              zero

              Originally posted by crlf
              Actuall, I ended up compiling (the AIX 5.3 machine had gcc installed and I installed it also on one of the 6.1 machines).

              Now, with a 64bit agent it reports uptime correctly.

              My compilation steps were slightly different from yours:

              Code:
              CFLAGS='-maix64' ./configure --enable-agent
              
              # On AIX 6.1 edit include/config.h and add, to the top:
              #    #include <sys/protosw.h>
              # Ref: https://www-304.ibm.com/support/docview.wss?uid=isg1IV01736
              
              make ARFLAGS="-cru -X64"
              
              strip -X64 src/zabbix_agent/zabbix_agentd

              Comment

              Working...