You can configure SNMP to establish alarms for custom monitors.
![]() |
Note: Configure only one monitor test at a time. |
To configure an SNMP alarm:
See Configuring an SNMPv3 Security Name for SNMP Monitoring (SRC CLI).
- [edit]
- user@host# edit snmp monitor alarm saeHeapUsage
where saeHeapUsage is the name of the alarm.
- [edit snmp monitor alarm saeHeapUsage]
- user@host# set interval 60
- [edit snmp monitor alarm saeHeapUsage]
- user@host# set sample-type absolute-value
If you set the sample type to delta-value, you can configure a discontinuity check. See Defining a Discontinuity Check to Validate Delta Values (SRC CLI).
- [edit snmp monitor alarmsaeHeapUsage]
- user@host# set ignore-startup-alarm
- [edit snmp monitor alarm saeHeapUsage]
- user@host# set event saeHeapUsageEvent
- [edit snmp monitor alarm saeHeapUsage]
- user@host# set variable juniSdxSaeHeapUsed.0
- [edit snmp monitor alarm saeHeapUsage]
- user@host# set strict-oid
Do not enable the strict-oid option when you monitor a column of an SNMP MIB table. An alarm for a column monitors the column on all entries of the table. If an entry for an object in the column passes an alarm test, an event is generated for that object.