check_snmp not obeying warning/critical limits

Andrew Cruse andrew at profitability.net
Wed Jul 27 19:10:24 CEST 2005


nagios-users-admin at lists.sourceforge.net wrote:
> I checked the archives and didn't see a problem similar to
> this.  I'm hoping it's just something simple I'm missing.
> 
> I'm using check_snmp to check an SNMP-addressable temperature
> sensor.  The check command is basically:
> 
>     check_snmp -H $HOSTADDRESS$ -o <OID for temperature> -u
> degF -w $ARG1$ -c $ARG2$
> 
> The service uses:
> 
>     check_command check_temp_sh2!60:90!32:118
> 
> which should go to "warning" if the temperature is outside
> the range 60-90 degrees and "critical" if it's outside 32-118 degrees.

Your syntax is a little off for the thresholds.  It should look
something like this:

-w 60\90 -c 32\118

or

check_command check_temp_sh2!60\90!32\118

Andrew



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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