[ZBX-6527] Possibly wrong interpretion of memory by Zabbix-Agent on AIX Created: 2013 Apr 19 Updated: 2017 May 30 Resolved: 2013 Jul 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.4 |
Fix Version/s: | 2.0.8rc1, 2.1.2 |
Type: | Incident report | Priority: | Major |
Reporter: | Marc | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | aix, memory, trivial | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
AIX 6.1.0.0, Zabbix-Server/-Proxy 2.0.5, Zabbix-Agent 2.0.4 |
Description |
One of our AIX administrators claims that there is something wrong in memory calculation by the Zabbix-Agent. — SNIP src/libs/zbxsysinfo/aix/proc.c — int PROC_MEM(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result) — SNAP — #ifdef HAVE_SYS_PROCFS_H /* AIX 5.x */ — SNIP — value = psinfo.pr_size; — SNAP--- #else — SNIP src/libs/zbxsysinfo/aix/proc.c — According to: Haven't found anything reliable about procsinfo.pi_size but according to: Memory information from AIX about all running zabbix_agentd processes in MB:
Memory information from Zabbix about all running zabbix_agentd processes in Bytes: The used zabbix_agentd binary is the officially provided pre-compiled AIX 6.1 2.0.4 one. |
Comments |
Comment by Andris Zeila [ 2013 Jul 29 ] |
Yes, the getprocs() returns size in pages (4KB) so the calculations were wrong. Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-6527 |
Comment by Alexander Vladishev [ 2013 Jul 31 ] |
Successfully tested! |
Comment by Andris Zeila [ 2013 Aug 01 ] |
Released in: |