Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6564

AIX system.uptime is wrong with 32bit agent

XMLWordPrintable

      I have a few AIX servers, and zabbix is reporting wrong uptime for the ones which have been up for a long time:

      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 always reports 0.

      This seems like a 32bit bug. I've recompiled the agent as a 64bit binary, and this made the problem go away.

      For completeness, these where the steps I took to rebuild zabbix_agentd for 64bit:

      CFLAGS='-maix64' ./configure --enable-agent

      1. On AIX 6.1 edit include/config.h and add, to the top:
      2. #include <sys/protosw.h>
      3. Ref: https://www-304.ibm.com/support/docview.wss?uid=isg1IV01736

      make ARFLAGS="-cru -X64"

      strip -X64 src/zabbix_agent/zabbix_agentd

            Unassigned Unassigned
            crlf Carlos Rodrigues
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: