Description

This article introduces two different methods to monitor the RE/SPU utilization:

  1. Polling MIB objects
  2. Configure “health-monitor”

Solution

The RE/SPU utilization on SRX devices can be monitored as follows:

  1. Poll MIB objects by using SNMP tools.

    Below are a couple MIB objects to poll. (For other MIB objects and more updated info on each release, refer to the “Documentation” tag on the Junos image download page.)  Based on Junos code, MIBs can be explored:

  2. Utilizing the SRX “health-monitor” feature:

    This feature is to sample certain predefined objects, which includes RE utilization, at a specified interval.

    Example:

    set snmp health-monitor interval 30 <<<<<<< at what interval we sample the data
    set snmp health-monitor rising-threshold 70
    set snmp health-monitor falling-threshold 60
    When the monitored object crosses the threshold, following message/trap will be sent out:
    root> show log messages |match snmp
    Dec 28 20:53:53 rmopd[1301]: LIBJSNMP_SA_IPC_REG_ROWS: ns_subagent_register_mibs: registering 20 rows
    Dec 28 20:56:47 snmpd[1210]: SNMPD_HEALTH_MON_THRESH_CROSS: Health Monitor: RE 0 CPU utilization crossed falling threshold 60 (value: 38), (variable: jnxOperatingCPU.9.1.0.0)
    Dec 28 20:57:47 snmpd[1210]: SNMPD_HEALTH_MON_THRESH_CROSS: Health Monitor: RE 0 CPU utilization crossed rising threshold 80 (value: 100), (variable: jnxOperatingCPU.9.1.0.0)
    Dec 28 20:57:57 snmpd[1210]: SNMPD_HEALTH_MON_THRESH_CROSS: Health Monitor: RE 0 CPU utilization crossed falling threshold 60 (value: 34), (variable: jnxOperatingCPU.9.1.0.0)
    Dec 28 20:59:57 snmpd[1210]: SNMPD_HEALTH_MON_THRESH_CROSS: Health Monitor: RE 0 CPU utilization crossed rising threshold 80 (value: 100), (variable: jnxOperatingCPU.9.1.0.0)
    Dec 28 21:00:27 snmpd[1210]: SNMPD_HEALTH_MON_THRESH_CROSS: Health Monitor: RE 0 CPU utilization crossed falling threshold 60 (value: 4), (variable: jnxOperatingCPU.9.1.0.0)
    You can determine what objects are being monitored by this running this command:
    @SRX-3400# run show snmp health-monitor

    Alarm
    Index Variable description Value State

    32768 Health Monitor: root file system utilization
    jnxHrStoragePercentUsed.1 91 rising threshold

    32769 Health Monitor: /config file system utilization
    jnxHrStoragePercentUsed.2 0 active

    32770 Health Monitor: RE 0 CPU utilization
    jnxOperatingCPU.9.1.0.0 10 active

    32772 Health Monitor: RE 0 memory utilization
    jnxOperatingBuffer.9.1.0.0 37 active

    32774 Health Monitor: Max Kernel Memory Used (%)
    jnxBoxKernelMemoryUsedPercent.0 7 active

Modification History

2020-09-29: Updated reference links in step 1.