Hide Forgot
Description of problem: The Linux memory MIB group does not parse the "Shmem" field out of /proc/meminfo. This results in the UCD-SNMP-MIB::memShared.0 being unavailable for RHEL 6 systems. Version-Release number of selected component (if applicable): net-snmp-5.5-57.el6_8.1 How reproducible: Easily Steps to Reproduce: 1. Setup a snmp agent installation 2. Allow access to the .1.3.6.1.4.1.2021 OID 3. Query the OID and look for memShared Actual results: None is returned Expected results: Output similar to the RHEL 7 implementation shown below: # snmpwalk -v2c -c public localhost .1.3.6.1.4.1.2021 | grep memSh UCD-SNMP-MIB::memShared.0 = INTEGER: 57616 kB Additional info:
Created attachment 1229392 [details] MemShared fix The value for MemShared in /proc/meminfo was used and was valid for 2.4 kernels. In 2.6 kernels, it has been dropped completely, which is why memShared.0 is now missing. This patch should fix described problem.
Comment on attachment 1229392 [details] MemShared fix patch looks OK.
Is there any intent with this to include functionality for 64 bit values
(In reply to Joe Wright from comment #5) > Is there any intent with this to include functionality for 64 bit values This OID (.1.3.6.1.4.1.2021) was registered for the UC Davis ECE Department by Tom Arons. So unless he will decide to change reference [1] for memShared variable from INTEGER32 to INTEGER64, I won't be able to change it due I have to abide his documentation. [1] http://www.net-snmp.org/docs/mibs/ucdavis.html