Juniper Major and Minor Alarms In Nagios
Use nagios to flag major and minor alarms in Juniper equipment. These are events that will illuminate the red and yellow alarm leds on the front of Juniper equipment
Insert the following into your /etc/nagios/commands.cfg file
define command { command_name check_juniper_major command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.2636.3.4.2.3.1.0 -c 2.5 register 1 } define command { command_name check_juniper_minor command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.2636.3.4.2.2.1.0 -c 2.5 register 1 }
$ARG1$ is the snmp community string.
Reference:
https://www.juniper.net/documentation/software/topics/concept/mib-jnx-chassis-alarm.txt
jnxYellowAlarms OBJECT IDENTIFIER ::= { jnxCraftAlarms 2 } jnxYellowAlarmState OBJECT-TYPE SYNTAX INTEGER { other(1), -- alarm state is unknown off(2), -- alarm is off on(3) -- alarm is on } MAX-ACCESS read-only STATUS current DESCRIPTION "The yellow alarm state on the craft interface panel. The yellow alarm is on when there is some system warning such as maintenance alert or significant temperature increase. This yellow alarm state could be turned off by the ACO/LT (Alarm Cut Off / Lamp Test) button on the front panel module." ::= { jnxYellowAlarms 1 } jnxRedAlarms OBJECT IDENTIFIER ::= { jnxCraftAlarms 3 } jnxRedAlarmState OBJECT-TYPE SYNTAX INTEGER { other(1), -- alarm state is unknown off(2), -- alarm is off on(3) -- alarm is on } MAX-ACCESS read-only STATUS current DESCRIPTION "The red alarm indication on the craft interface panel. The red alarm is on when there is some system failure or power supply failure or the system is experiencing a hardware malfunction or some threshold is being exceeded. This red alarm state could be turned off by the ACO/LT (Alarm Cut Off / Lamp Test) button on the front panel module." ::= { jnxRedAlarms 1 }