SNMP value question
Posted: Fri Apr 05, 2013 4:18 pm
Hello,
I am trying to tweak my switch port SNMP in Nagios. I would like a port that is 'Not connected' or 'Not Present' in Nagios to not send out any critical alerts or warning (basically to show OK), but I would like it to do so for a 'down' port. Here is an example of how it works currently. Eth7= connected and up. Eth8= connected and DOWN. Eth9= not connected.
Eth 7
OK 04-05-2013 17:08:18 0d 3h 34m 43s 1/3 SNMP OK - up(1)
Eth 8
CRITICAL 04-05-2013 17:08:52 0d 0h 48m 9s 3/3 SNMP CRITICAL - *down(2)*
Eth 9
CRITICAL 04-05-2013 14:42:23 0d 3h 34m 38s 3/3 SNMP CRITICAL - *notPresent(6)*
Here is my current SNMP check command for Nagios:
check_snmp!-H 10.1.1.1 -P 2c -C secret -o ifOperStatus.9 -r 1 (repeated for the other ports)
I've tried a few different options with no luck. I'm sure it's a simple parameter I am missing or not understanding...
Thank you for taking the time to read this.
I am trying to tweak my switch port SNMP in Nagios. I would like a port that is 'Not connected' or 'Not Present' in Nagios to not send out any critical alerts or warning (basically to show OK), but I would like it to do so for a 'down' port. Here is an example of how it works currently. Eth7= connected and up. Eth8= connected and DOWN. Eth9= not connected.
Eth 7
OK 04-05-2013 17:08:18 0d 3h 34m 43s 1/3 SNMP OK - up(1)
Eth 8
CRITICAL 04-05-2013 17:08:52 0d 0h 48m 9s 3/3 SNMP CRITICAL - *down(2)*
Eth 9
CRITICAL 04-05-2013 14:42:23 0d 3h 34m 38s 3/3 SNMP CRITICAL - *notPresent(6)*
Here is my current SNMP check command for Nagios:
check_snmp!-H 10.1.1.1 -P 2c -C secret -o ifOperStatus.9 -r 1 (repeated for the other ports)
I've tried a few different options with no luck. I'm sure it's a simple parameter I am missing or not understanding...
Thank you for taking the time to read this.