[ZBX-5722] Zabbix agent incorrect calculates vm.memory.size[available] on i386 Solaris Created: 2012 Oct 22 Updated: 2017 May 30 Resolved: 2012 Nov 14 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.4rc1, 2.1.0 |
Fix Version/s: | 2.0.4rc1, 2.1.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | agent, solaris | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
./zabbix_get -s name -k vm.memory.size[available] ./zabbix_get -s name -k vm.memory.size[total] ./zabbix_get -s name -k vm.memory.size[inactive] ZBX_NOTSUPPORTED |
Comments |
Comment by Alexey Pustovalov [ 2012 Oct 22 ] |
I suppose that root of problem in memory.c file: static int VM_MEMORY_AVAILABLE(AGENT_RESULT *result) { SET_UI64_RESULT(result, sysconf(_SC_AVPHYS_PAGES) * sysconf(_SC_PAGESIZE)); return SYSINFO_RET_OK; } There we do not use (zbx_uint64_t). |
Comment by Andris Mednis [ 2012 Nov 14 ] |
Thanks, Alexey, for finding the error! |
Comment by Andris Mednis [ 2012 Nov 14 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-5722. |
Comment by dimir [ 2012 Nov 20 ] |
Successfully tested! |
Comment by Andris Mednis [ 2012 Nov 21 ] |
Fixed in versions pre-2.0.4 rev. 31559 and pre-2.1.0 rev. 31560. |