nagios check_snmp problem
Posted: Sun Sep 17, 2017 11:16 pm
Hi all, I am trying to use nagios check_snmp plugin to monitor the port status of my cisco 6504E switch.
I successfully use the check_snmp to get the port status but nagios didn't change the status to critical even snmp return the status is down.
It still show "SNMP OK". I already updated check_snmp version to 2.2 but is still abnormal function. It seem the -r 1 is not working.
Below is the command i using:
[root@monitor monitoring-plugins-2.2]# /usr/local/nagios/libexec/check_snmp -H XX.XX.XX.XX -C ABC -o IF-MIB::ifName.1 -o ifOperStatus.1 -r 0
SNMP CRITICAL - *Gi1/2/1* down(2) |
[root@monitor monitoring-plugins-2.2]# /usr/local/nagios/libexec/check_snmp -H XX.XX.XX.XX -C ABC -o IF-MIB::ifName.1 -o ifOperStatus.1 -r 1
SNMP OK - Gi1/2/1 down(2) |
[root@monitor monitoring-plugins-2.2]# /usr/local/nagios/libexec/check_snmp -H XX.XX.XX.XX -C ABC -o IF-MIB::ifName.1 -o ifOperStatus.1 -r 2
SNMP OK - Gi1/2/1 down(2) |
My Nagios version is 4.1.1. Is there any way to make "-r 1" function normally? Thank you.
I successfully use the check_snmp to get the port status but nagios didn't change the status to critical even snmp return the status is down.
It still show "SNMP OK". I already updated check_snmp version to 2.2 but is still abnormal function. It seem the -r 1 is not working.
Below is the command i using:
[root@monitor monitoring-plugins-2.2]# /usr/local/nagios/libexec/check_snmp -H XX.XX.XX.XX -C ABC -o IF-MIB::ifName.1 -o ifOperStatus.1 -r 0
SNMP CRITICAL - *Gi1/2/1* down(2) |
[root@monitor monitoring-plugins-2.2]# /usr/local/nagios/libexec/check_snmp -H XX.XX.XX.XX -C ABC -o IF-MIB::ifName.1 -o ifOperStatus.1 -r 1
SNMP OK - Gi1/2/1 down(2) |
[root@monitor monitoring-plugins-2.2]# /usr/local/nagios/libexec/check_snmp -H XX.XX.XX.XX -C ABC -o IF-MIB::ifName.1 -o ifOperStatus.1 -r 2
SNMP OK - Gi1/2/1 down(2) |
My Nagios version is 4.1.1. Is there any way to make "-r 1" function normally? Thank you.