Sunday, June 04, 2017

SNMP OID for free memory

Hi,

I am using OpenBSD 6.1 the the Net-SNMP port in order to monitor the system resources. I don't seem to find any OID for the free memory and was wondering if this information is simply not made available in SNMP. Doing an snmpwalk on the HOST-RESOURCES MIB for memory shows the following avaialble OIDs related to memory:

HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.9 = STRING: Shared real memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /

Any idea where the the free memory info would be hiding?

I found a script called check_snmp_openbsd.py (https://github.com/alexander-naumov/nagios-plugins/blob/master/check_snmp_openbsd.py) where the OID .1.3.6.1.4.1.11.2.3.1.1.7.0 is used for getting the free memory but when I do an snmpget on my OpenBSD box this OID is not available.

Regards,
Mabi

A

No comments:

Post a Comment