SNMP Check straight to Critical
Kyle Tucker
kylet at panix.com
Thu Apr 20 19:06:57 CEST 2006
> I want to be able to send an SMMP check straight to critical instead of
> warning. I.e. a Wireless AP Interface has UP and Down. So instead of
> sending that to a Warning status I would like it to go straight to
> Critical. I have tried using the check_snmp string, however it requires
> a -w and -c, so it will only see it as a warning.
My check_snmp command from the 1.4.2 plugins allows me to just use a
-c arg and I use it a lot so that any non-zero return triggers critical.
# ls -l /usr/local/src/nagios-plugins-1.4.2/plugins/check_snmp
-rwxr-xr-x 1 root root 509072 Mar 6 14:14 /usr/local/src/nagios-plugins-1.4.2/plugins/check_snmp
# ls -l /usr/local/nagios/libexec/check_snmp
-rwxr-xr-x 1 root root 509072 Mar 6 14:14 /usr/local/nagios/libexec/check_snmp
# /usr/local/nagios/libexec/check_snmp -u "load average" -t 3 -P 3 -H some.loaded.host -L authPriv -U xxxxx -a MD5 -A xxxxx -X xxxxx -o laLoad.2 -c 0
SNMP CRITICAL - *1* load average | UCD-SNMP-MIB::laLoad.2=1;;;;
--
- Kyle
---------------------------------------------
kylet at panix.com http://www.panix.com/~kylet
---------------------------------------------
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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