Bug 1402556 - Unable to monitor Shared memory use via .1.3.6.1.4.1.2021 OID
Summary: Unable to monitor Shared memory use via .1.3.6.1.4.1.2021 OID
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: net-snmp
Version: 6.9
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Josef Ridky
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-07 19:57 UTC by Kyle Walker
Modified: 2020-12-14 07:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-15 20:29:53 UTC
Target Upstream Version:


Attachments (Terms of Use)
MemShared fix (1.91 KB, patch)
2016-12-08 07:43 UTC, Josef Ridky
jsafrane: review+
Details | Diff

Description Kyle Walker 2016-12-07 19:57:01 UTC
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:

Comment 1 Josef Ridky 2016-12-08 07:43:04 UTC
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 3 Jan Safranek 2016-12-12 11:40:56 UTC
Comment on attachment 1229392 [details]
MemShared fix

patch looks OK.

Comment 5 Joe Wright 2017-07-03 21:11:18 UTC
Is there any intent with this to include functionality for 64 bit values

Comment 6 Josef Ridky 2017-07-04 07:43:50 UTC
(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


Note You need to log in before you can comment on or make changes to this bug.