SNMP Trap: Memory Usage

A trap is generated for high memory usage.

Identification

  • The originating IP / hostname is used to identify the system generating the traps

  • The NMS is responsible for associating traps with each managed system, along with clearing of alarms and escalation to the relevant system operator

  • The trap OID is generic for various SNMP events monitored by the system

  • The SNMP system name is included as part of the variable binding to assist identification:

.iso.org.dod.internet.mgmt.mib-2.system.sysName.0 = standalone

Trap OID

.iso.org.dod.internet.mgmt.mib-2.dismanEventMIB.dismanEventMIBNotificationPrefix. dismanEventMIBNotifications.mteTriggerFired

Variable Bindings - High memory usage.

  • .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.0 = 2 minutes (12065)

  • snmpTrapOID = mteTriggerFired

  • .iso.org.dod.internet.mgmt.mib-2.dismanEventMIB.dismanEventMIBNotificationPrefix. dismanEventMIBNotificationObjects.mteHotTrigger.0 = ‘ERROR: High memory usage’

  • .iso.org.dod.internet.mgmt.mib-2.dismanEventMIB.dismanEventMIBNotificationPrefix. dismanEventMIBNotificationObjects.mteHotValue.0 = 1

  • .iso.org.dod.internet.mgmt.mib-2.system.sysName.0 = standalone

Variable Bindings - Extremely high CPU usage.

  • .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.0 = 2 minutes (12065)

  • snmpTrapOID = mteTriggerFired

  • .iso.org.dod.internet.mgmt.mib-2.dismanEventMIB.dismanEventMIBNotificationPrefix. dismanEventMIBNotificationObjects.mteHotTrigger.0 = ‘ERROR: Extremely high CPU usage’

  • .iso.org.dod.internet.mgmt.mib-2.dismanEventMIB.dismanEventMIBNotificationPrefix. dismanEventMIBNotificationObjects.mteHotValue.0 = 1

  • .iso.org.dod.internet.mgmt.mib-2.system.sysName.0 = standalone

Severity:

  • Critical: ERROR: Memory swap error

  • Info: INFO: Memory usage returned to normal

Example: Critical

Mar 28 22:32:24 robot-sl snmptrapd[1214]:
2019-03-28 22:32:24 <UNKNOWN>
[UDP: [192.168.100.3]:25747->[192.168.100.25]:162]:
#012iso.3.6.1.2.1.1.3.0 = Timeticks: (997093) 2:46:10.93
#011iso.3.6.1.6.3.1.1.4.1.0 = OID: iso.3.6.1.2.1.88.2.0.1
#011iso.3.6.1.2.1.88.2.1.1.0 = STRING: "INFO: Memory usage returned to normal"
#011iso.3.6.1.2.1.88.2.1.3.0 = STRING: "Memory more than 1024MB"
#011iso.3.6.1.2.1.88.2.1.5.0 = INTEGER: 0
#011iso.3.6.1.2.1.1.5.0 = STRING: "VOSS"

Example: Info

Mar 28 22:32:24 robot-sl snmptrapd[1214]:
2019-03-28 22:32:24 <UNKNOWN>
[UDP: [192.168.100.3]:25747->[192.168.100.25]:162]:
#012iso.3.6.1.2.1.1.3.0 = Timeticks: (997093) 2:46:10.93
#011iso.3.6.1.6.3.1.1.4.1.0 = OID: iso.3.6.1.2.1.88.2.0.1
#011iso.3.6.1.2.1.88.2.1.1.0 = STRING: "INFO: Memory usage returned to normal"
#011iso.3.6.1.2.1.88.2.1.3.0 = STRING: "Memory more than 1024MB"
#011iso.3.6.1.2.1.88.2.1.5.0 = INTEGER: 0
#011iso.3.6.1.2.1.1.5.0 = STRING: "VOSS"