Page 1 of 1

Negative Threshold Ranges

Posted: Thu Feb 16, 2017 3:33 pm
by nbradshaw45
I have a service check that will return negative 1 thru negative 99.

I want to set a warning starting at -55 then critical at -60 (the following code works for this): -w=-55: -c=-60:

However, I want -99 to be OK.

How can I do a number range that will exclude -99?

Thanks -

Re: Negative Threshold Ranges

Posted: Thu Feb 16, 2017 4:14 pm
by rkennedy
Based on https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT - I don't think this would be possible to add an exception for -99.

I believe your best bet is writing a wrapper script to sit in front of the service checks that have this exception.

Re: Negative Threshold Ranges

Posted: Wed Mar 01, 2017 2:02 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?

Re: Negative Threshold Ranges

Posted: Wed Mar 01, 2017 2:43 pm
by nbradshaw45
Yes - I used a wrapper to make this happen...we can close...thanks.