check_snmp: set negative warning/critical threshholds?

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
acwell
Posts: 1
Joined: Fri Oct 19, 2018 4:10 pm

check_snmp: set negative warning/critical threshholds?

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp: set negative warning/critical threshholds?

Post by scottwilkerson »

This is possible with the following format:

Code: Select all

-w @-89:-80 -c @~:-90
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked