check_snmp help

Andrew Cruse andrew at profitability.net
Wed Jun 22 15:33:37 CEST 2005


nagios-users-admin at lists.sourceforge.net wrote:
> Hi all,
> 
> I need some help with check_snmp critical and warning range :
> 
> my oid can return 3 integers values:
> here is (in order): return value - Status (from mib) - check
> status I want
> 1 - Active - should give snmp ok
> 2 - NotInService - should give snmp critical
> 3 - noSession - should give snmp ok
> 
> is there a way to do something like that ( probably with -w -c
> options) 

Have a look at the -r option.  You should be able to craft a regex that
encompasses both "Active" and "noSession" values.

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