"snmp" displays incorrect or negative memory values on monitoring software

Solution Verified - Updated -


  • When using various software to view memory values provided by "snmp", incorrect or negative values are shown.

  • An example of this is when a monitoring application uses the following calculations:

RealFree = memTotalFree + memBuffer + memCached
RealUsed = memTotalReal - RealFree
  • Due to incorrect memory calculations reported by "snmp" (which can be checked with snmpbulkwalk -v2c -c XXX . , RealFree gets reported as greater than memTotalReal. This causes RealUsed to become a negative number, resulting in the application displaying the negative number or an invalid value.

  • Also memTotalFree is reported as greater than memTotalReal, which should not be possible.


  • Red Hat Enterprise Linux (RHEL) 7.7
  • net-snmp-5.7.2-43.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content