[j-nsp] Monitoring SRX redundancy groups via SNMP

Morgan McLean wrx230 at gmail.com
Mon Mar 26 18:41:23 EDT 2012


I'm looking to monitor the status of SRX clusters via snmp under nagios.
Juniper only provided me with an oid to monitor the actual routing engine
status, as in whether its powered up and online etc. I want to know which
node is primary for the routing engine, fail over details etc. *Here is
SNMP output:*

JUNIPER-MIB::jnxRedundancyContentsIndex.9.1.0.0 = INTEGER: 9
JUNIPER-MIB::jnxRedundancyContentsIndex.9.3.0.0 = INTEGER: 9
JUNIPER-MIB::jnxRedundancyL1Index.9.1.0.0 = INTEGER: 1
JUNIPER-MIB::jnxRedundancyL1Index.9.3.0.0 = INTEGER: 3
JUNIPER-MIB::jnxRedundancyL2Index.9.1.0.0 = INTEGER: 0
JUNIPER-MIB::jnxRedundancyL2Index.9.3.0.0 = INTEGER: 0
JUNIPER-MIB::jnxRedundancyL3Index.9.1.0.0 = INTEGER: 0
JUNIPER-MIB::jnxRedundancyL3Index.9.3.0.0 = INTEGER: 0
JUNIPER-MIB::jnxRedundancyDescr.9.1.0.0 = STRING: node0 Routing Engine 0
JUNIPER-MIB::jnxRedundancyDescr.9.3.0.0 = STRING: node1 Routing Engine 0
JUNIPER-MIB::jnxRedundancyConfig.9.1.0.0 = INTEGER: master(2)
JUNIPER-MIB::jnxRedundancyConfig.9.3.0.0 = INTEGER: master(2)
JUNIPER-MIB::jnxRedundancyState.9.1.0.0 = INTEGER: master(2)
JUNIPER-MIB::jnxRedundancyState.9.3.0.0 = INTEGER: master(2)
JUNIPER-MIB::jnxRedundancySwitchoverCount.9.1.0.0 = Counter32: 0
JUNIPER-MIB::jnxRedundancySwitchoverCount.9.3.0.0 = Counter32: 0
JUNIPER-MIB::jnxRedundancySwitchoverTime.9.1.0.0 = Timeticks: (0) 0:00:00.00
JUNIPER-MIB::jnxRedundancySwitchoverTime.9.3.0.0 = Timeticks: (739204)
2:03:12.04
JUNIPER-MIB::jnxRedundancySwitchoverReason.9.1.0.0 = INTEGER:
neverSwitched(2)
JUNIPER-MIB::jnxRedundancySwitchoverReason.9.3.0.0 = INTEGER:
neverSwitched(2)

This is what a show *chassis cluster status shows:*

Cluster ID: 1
Node                  Priority          Status    Preempt  Manual failover

Redundancy group: 0 , Failover count: 1
    node0                   100         primary        no       no
    node1                   1           secondary      no       no

Redundancy group: 1 , Failover count: 4
    node0                   100         secondary      no       no
    node1                   1           primary        no       no

How can it be never switched, yet it shows a switch over time? Nothing
seems to be matching up..does anybody know the proper SNMP OID/MIB to be
using?

Thanks,
Morgan


More information about the juniper-nsp mailing list