Monitoring the RAM / Memory with SNMP
search cancel

Monitoring the RAM / Memory with SNMP

book

Article ID: 233897

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

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

Environment

Release : 10.0

Component :

Resolution

1) Verify your community,

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

look for,

rocommunity layer7 127.0.0.1

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

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

# snmpwalk -v 2c  -c layer7 localhost 1.3.6.1.4.1.2021.4

Results:
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.