Negative Threshold Ranges

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nbradshaw45
Posts: 11
Joined: Tue Jan 31, 2017 5:09 pm

Negative Threshold Ranges

Post 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 -
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Negative Threshold Ranges

Post 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.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Negative Threshold Ranges

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee
nbradshaw45
Posts: 11
Joined: Tue Jan 31, 2017 5:09 pm

Re: Negative Threshold Ranges

Post by nbradshaw45 »

Yes - I used a wrapper to make this happen...we can close...thanks.
Locked