check_snmp "-r option" not working
Posted: Thu Feb 02, 2012 11:45 am
Hi!!!
I'm new user.
I'm starting to use Nagios and i'm having trouble with check_snmp command.
I've installed net-snmp 5.7.1 from source code on a ubuntu 11.10 desktop distribution, after that i've installed Nagios 3.3.1 and nagios plugins 1.4.15 without errors on every step.
When i make a check_snmp command i get the right response but the "-r option" does not works.
The command is like that:
/usr/local/nagios/libexec/check_snmp -H x.x.x.x -C community -o ifOperStatus.1 -r 2
It returns that:
SNMP OK - 1 | IF-MIB::ifOperStatus.1=1 but the -r option should have changed to CRITICAL
On other Linux distribution (debian) the same check_snmp command reutrns: SNMP CRITICAL - *up(1)* | IF-MIB::ifOperStatus.1=up(1)
Does anybody know why the difference?
Thank You
I'm new user.
I'm starting to use Nagios and i'm having trouble with check_snmp command.
I've installed net-snmp 5.7.1 from source code on a ubuntu 11.10 desktop distribution, after that i've installed Nagios 3.3.1 and nagios plugins 1.4.15 without errors on every step.
When i make a check_snmp command i get the right response but the "-r option" does not works.
The command is like that:
/usr/local/nagios/libexec/check_snmp -H x.x.x.x -C community -o ifOperStatus.1 -r 2
It returns that:
SNMP OK - 1 | IF-MIB::ifOperStatus.1=1 but the -r option should have changed to CRITICAL
On other Linux distribution (debian) the same check_snmp command reutrns: SNMP CRITICAL - *up(1)* | IF-MIB::ifOperStatus.1=up(1)
Does anybody know why the difference?
Thank You