[ZBX-10242] Uptime counter overflow on AIX machines Created: 2016 Jan 08  Updated: 2017 May 30  Resolved: 2016 Jan 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.2.11
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: Nodar Sardlishvili Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Server version 2.4.6.
Zabbix agent version PPC 2.2.5.


Issue Links:
Duplicate
duplicates ZBX-6564 AIX system.uptime is wrong with 32bit... Closed

 Description   

On AIX 6.1 machines uptime counter overflowed after 497 days.



 Comments   
Comment by Aleksandrs Saveljevs [ 2016 Jan 08 ]

497*24*3600*100 = 4294080000 is suspiciously around the maximum value that a 32-bit integer can have. Does "uptime" command show the correct value?

According to https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.files/libperfstat.h.htm?lang=en , the type of "lbolt" member in "perfstat_cpu_total_t" structure (which Zabbix uses according to src/libs/zbxsysinfo/aix/uptime.c) is "ime_t", which may or may not be a typo for "time_t". Unfortunately, perfstat is not available on our AIX machines currently. Could you please check the size of "lbolt" on your machine?

Comment by Aleksandrs Saveljevs [ 2016 Jan 08 ]

Actually, this seems to be a duplicate of ZBX-6564. It says there that compiling a 64-bit agent made the problem go away.

Generated at Thu Apr 18 19:38:31 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.