check_snmp Return Codes Issue - Nagios not alerting
Posted: Fri Jun 24, 2016 8:02 am
Hi all,
I am configuring Nagios to monitor a Brocade switch using snmp which is working using the following command
This is retuning the correct results;
SNMP CRITICAL - *down(2)*
But in Nagios the alert is not going CRITICAL and alerting. It remains green despite registering 'SNMP CRITICAL - *2* ' in the Status Information.
I am presuming this is something to do with the way in which snmp is passing return codes/arguments in the command but I don't seem to be able to get to the bottom of the issue. I have tried defining the critical alert with no luck so at the minute I am just stuck with the correct output, but no Nagios alert - rendering the entire thing pointless in monitoring terms.
Any help would be appreciated.
Thanks,
Tom
I am configuring Nagios to monitor a Brocade switch using snmp which is working using the following command
Code: Select all
define command{
command_name check_brocade_port3
command_line $USER1$/check_snmp -H 192.168.250.242 -o 1.3.6.1.2.1.2.2.1.8.3 -C winn -m ALL -t 60 | /usr/bin/cut -d'|' -f1
}
SNMP CRITICAL - *down(2)*
But in Nagios the alert is not going CRITICAL and alerting. It remains green despite registering 'SNMP CRITICAL - *2* ' in the Status Information.
I am presuming this is something to do with the way in which snmp is passing return codes/arguments in the command but I don't seem to be able to get to the bottom of the issue. I have tried defining the critical alert with no luck so at the minute I am just stuck with the correct output, but no Nagios alert - rendering the entire thing pointless in monitoring terms.
Any help would be appreciated.
Thanks,
Tom