Monitoring the RAM / Memory with SNMP
search cancel

Monitoring the RAM / Memory with SNMP


Article ID: 233897


Updated On:


CA API Gateway


Can you please provide us with OIDs that we can use to monitor the RAM (memory) utilization by querying SNMP?


Release : 10.0

Component :


1) Verify your community,

# more /etc/snmp/snmpd.conf | grep community

look for,

rocommunity layer7

The community here is layer7 the ACL (Access Control List is meaning only localhost can query with this configuration.

2) Query the UCD (UC Davis Mib for Memory).

# snmpwalk -v 2c  -c layer7 localhost

UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 2097148 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 2097148 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 67976428 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 58839420 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 60936568 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 649316 kB
UCD-SNMP-MIB::memCached.0 = INTEGER: 5520116 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:

*** These are the memory related OIDs (object Identifiers) that can / should be queried for memory metrics.