[Nagios] Set a warning range with negative value (function parse_range_string)

Marc Leurent lftsy at leurent.eu
Tue Apr 3 18:25:08 CEST 2012


Good evening,
I have been trying to set a warning range -20:20 in the output of a ./check_snmp -H ab.cd.34.ef -C default -P 1 -o 1.3.6.1.4.1.9.10.24.1.1.4.1.3.2 --rate -w -20:20
without success

I have seen in http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT that is was possible to set -INFINITY as start range, but what about simple negative value?
Can you pinpoint me on the syntax to use

Thank you


./check_snmp -H ab.cd.34.ef -C default -P 1 -o 1.3.6.1.4.1.9.10.24.1.1.4.1.3.2 --rate -w -20:20
SNMP RATE WARNING - *0* | iso.3.6.1.4.1.9.10.24.1.1.4.1.3.2=0 

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
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