check_snmp returns bad exit-code

NetVicious n3tvicious-nagios at yahoo.es
Tue Jun 15 11:06:59 CEST 2004


Solved by compiling the nagios-plugins on this machine.

I have also added some extra mibs to the mibs directory and these
files had root:root -rw-r--r-- rights so nagios user couldn't read
this mibs when using snmpget.

Sorry for all!

 --- n3tvicious-nagios at yahoo.es escribió:
> Hi!
> 
> I have a "little" problem with the check_snmp exit-code. It returns
> always Warnings or Criticals but not OKs.
> 
> Here are some tests (I removed the ip and the oid):
> 
> Without warning and critical range in the command line ( I don't
> know
> if it should return an ok in this case)
> 
> #check_snmp -H <ip> -C public -o <oid>
> SNMP WARNING - 90
> #echo $?
> 1
> 
> ----------------------
> 
> In this test it should return an OK code because I set <10 =
> Warning
> and <5 = Critical
> 
> #check_snmp -H <ip> -C public -o <oid> -w 10:100 -c 5:100
> SNMP WARNING - 90
> #echo $?
> 1
> 
> ----------------------
> 
> This test it's correct because I set <91 = Warning and <5 =
> Critical
> 
> #check_snmp -H <ip> -C public -o <oid> -w 91:100 -c 5:100
> SNMP WARNING - *90*
> #echo $?
> 1
> 
> 
> ----------------------
> 
> This test it's correct because I set <95 = Warning and <91 =
> Critical
> 
> #check_snmp -H <ip> -C public -o <oid> -w 95:100 -c 91:100
> SNMP CRITICAL - *90*
> #echo $?
> 2
> 
> ----------------------
> 
> Someone could help me a bit?
> 
> Thanks for read!


=====
.. //\/ e t . \/ i c i o u s ..


		
______________________________________________________________________
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list