check_snmp negative warning option?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jay2679
Posts: 10
Joined: Wed Aug 25, 2010 12:09 am

check_snmp negative warning option?

Post by jay2679 »

Hi,

Trying to use a negative value for warning and critical ranges for snmp however it seems this is not an option ? basically want the check to alert me when the value reaches 0 not a check for incrementing.

/usr/local/nagios/libexec/check_snmp -H 10.10.10.200 -o 1.3.6.1.4.1.5011.100.101.1 -w -5: -c -0: -C test123 -t 10
check_snmp: Invalid warning threshold - -5:
Usage:check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]
[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]
[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]
[-m miblist] [-P snmp version] [-L seclevel] [-U secname] [-a authproto]
[-A authpasswd] [-X privpasswd]


enterprises.5011.100.1.1 = INTEGER: 1
enterprises.5011.100.2.1 = STRING: "check-varnish"
enterprises.5011.100.3.1 = STRING: "/usr/local/libexec/check_varnish -n varnish1 -p n_backend -w 11 -c 0"
enterprises.5011.100.100.1 = INTEGER: 2
enterprises.5011.100.101.1 = STRING: "VARNISH CRITICAL: N backends|n_backend=10"
enterprises.5011.100.102.1 = INTEGER: 0
enterprises.5011.100.103.1 = ""
Locked