Page 1 of 1

No TH values

Posted: Tue Dec 15, 2020 11:38 am
by seaward1983
I suspect the answer is "no", but was wondering if "monitoring" can be set up with no threshold values set. "Why would you want to do that". We have MSSQL environment, but are just wanting performance metrics, without having threshold values set. Yes, I have notifications disabled, but still shows up in the Service Status Summary as "Critical".... which confuses the team. #PanicEnsues

I've tried just removing the values - but it errors out

check_xi_ncpa!-t 'XXXXX' -P 5693 -M memory/swap -u Gi -w 95 -c 99!!!!!!

Asking for a friend :lol:

Re: No TH values

Posted: Tue Dec 15, 2020 3:51 pm
by dchurch
Most checks accept "critical" and "warning" thresholds with lower and upper bounds in the form of [LOWER]:[UPPER]. That is, if critical=1:5, then if it's outside the range of 1-5 inclusive (for example 0 or 7), it'll consider it "critical." When UPPER is empty, it assumed it's Infinity. Likewise, if LOWER is empty, it's assumed to be 0.

Most of the time, you can disable the critical and warning by simply not specifying them. But if you're dealing with a check script that has a default critical or warning threshold if not specified, you can use the value critical=0: to disable the check from going critical.

So, to disable the critical and warning checks, just making this check informational only:

Code: Select all

check_xi_ncpa!-t 'XXXXX' -P 5693 -M memory/swap -u Gi -w 0: -c 0:!!!!!!