Page 1 of 1

check_snmp: set negative warning/critical threshholds?

Posted: Fri Oct 19, 2018 4:17 pm
by acwell
I need my warnings and critical thresholds for a SNMP value checked with check_snmp to be negative. Is this possible? I've tried just about everything I can think of to get this to work with no luck. This is for checking radio signal/noise levels, which are always negative.

I'd like, for example:

OK: -79 to +inf (in practice this will never be above zero, but in theory positive numbers are valid)
Warning: -80 to -89
Critical: -90 to -inf

Re: check_snmp: set negative warning/critical threshholds?

Posted: Sat Oct 20, 2018 10:22 am
by scottwilkerson
This is possible with the following format:

Code: Select all

-w @-89:-80 -c @~:-90
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT