check_snmp - wrong status

Jan Scholten Jan.Scholten at iconz.net
Thu Nov 25 21:22:57 CET 2004


  >     The command checks a temp sensor and the OID returns the 
temperature.
>      
>     The command
>     /usr/local/nagios/libexec/check_snmp -C public -H 10.20.29.50 -o
>     .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 33:28 -c 100:34 -m
>     /root/snmp/mib_files/5.0/sp.mib
>      
>     When run from command line the result is SNMP OK - 22. When run from
>     Nagios the result is SNMP Warning - 22.
>      
>     I've tried all possible warn/crit. ranges but end up withthe same
>     problem. Anybody got a clue where Nagios gets this funny idea from?
>     check_snmp version 1.25 (nagios-plugins 200303262200).
>      
Try    /usr/local/nagios/libexec/check_snmp -C public -H 10.20.29.50 -o 
     .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 33:28 -c 100:34 -m 
/root/snmp/mib_files/5.0/sp.mib -v

and copy paste/execute the resulting snmpget line. You probably have a 
erroroutput there, that's why you have the Warning. Fix that error(s) 
and you should be fine!

Btw: I would set the limits to -w :28 -c :34
which means the same but is much more readable (for me) Upper limit 28 
above warning, above 34 critical.

Jan


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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