[ZBX-6733] wrong proc.mem in FreeBSD Created: 2013 Jun 20  Updated: 2017 May 30  Resolved: 2014 Oct 20

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

Type: Incident report Priority: Major
Reporter: gescheit Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: freebsd, memory, patch, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 8.3


Attachments: File zabbix_agent_meminfo.diff    
Issue Links:
Duplicate
duplicates ZBXNEXT-1078 add fifth parameter to the key "proc.... Closed

 Description   

Seems proc.mem value not included dynamic allocated memory.
zabbix_agent_meminfo.diff change memory calculating algorithm, so proc.mem[] return vm size as in Linux.



 Comments   
Comment by Andris Mednis [ 2014 Oct 20 ]

On FreeBSD 4.x and older the attached patch uses "kp_eproc.e_vm.vm_size". Seems like it should be "kp_eproc.e_vm.vm_map.size".

Comment by Andris Mednis [ 2014 Oct 20 ]

This issue is being solved as part of ZBXNEXT-1078.
Virtual size of the FreeBSD process will be available using the proc.mem[] 5th parameter, for example:

$ zabbix_agentd -t proc.mem[syslogd,,,,vsize]
Generated at Fri Apr 19 03:51:36 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.