Hello team,
it's seems the OID UCD-SNMP-MIB::memShared.0 (OID .1.3.6.1.4.1.2021.4.13.0) no more longer exist since the version 5.4.3 included.
On the same server (debian 6, kernel 2.6.38.2)
- with version 5.4.1 (from deb package OR compiled from source) I ve got an answer:
# snmpget -v2c -c pub -On server 1.3.6.1.4.1.2021.4.13.0
.1.3.6.1.4.1.2021.4.13.0 = INTEGER: 0 kB
- with version 5.4.3 (from deb package OR compiled from source) and 5.6.1 (compiled from source)
# snmpget -v2c -c pub -On server 1.3.6.1.4.1.2021.4.13.0
.1.3.6.1.4.1.2021.4.13.0 = No Such Object available on this agent at this OID
From what I understood snmpd get this value from "Shmem" in /proc/meminfo. The string is available in the file:
fkteqx-c37-15:net-snmp-5.6.1# cat /proc/meminfo
MemTotal: 24733492 kB
MemFree: 23446212 kB
Buffers: 87064 kB
Cached: 1028028 kB
SwapCached: 0 kB
Active: 496044 kB
Inactive: 635448 kB
Active(anon): 16416 kB
Inactive(anon): 144 kB
Active(file): 479628 kB
Inactive(file): 635304 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 24150012 kB
SwapFree: 24150012 kB
Dirty: 8 kB
Writeback: 0 kB
AnonPages: 15832 kB
Mapped: 5032 kB
Shmem: 152 kB
[... SNIP ...]
Maybe I have miss a patch or feature but I'm very surprised by this disappearing
Regards
Emmanuel Vargas
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi,
still don't know if it is a bug or a wrong use on my side?
rgds,
Emmanuel
The value for MemShared in /proc/meminfo was used and was valid for 2.4 kernels. In 2.6 kernels, it was always 0 (see http://www.tux.org/lkml/#s14-3\). Now it appears that it has been dropped completely, which is why memShared.0 is now missing.
I've googled a bit on Shmem to see if it's the same thing, but I haven't found anything authoritative.