nagios-scripts icon indicating copy to clipboard operation
nagios-scripts copied to clipboard

When warning and critical thresholds are equal, don't go critical on stats that are less than the critical threshold.

Open dlawregiets opened this issue 12 years ago • 3 comments

We have a dead letter queue that we want to be alerted on if any message is sent there. Setting warning/critical both to 1 caused a 0 from graphite to go critical in nagios.

dlawregiets avatar Aug 16 '13 16:08 dlawregiets

Why don't you just set warning to 0 and critical to 1?

obfuscurity avatar Aug 17 '13 00:08 obfuscurity

Doesn't line 95 make a 0, which is what we want under normal operation, a warning? I'd rather not have a warning if there isn't an actual warning.

dlawregiets avatar Aug 17 '13 01:08 dlawregiets

Sure, but you're also using the check in a way it isn't meant to be used. What happens if warning == critical where 1 is "good" and 0 is "bad"? (theoretical scenario another user might have)

obfuscurity avatar Aug 17 '13 02:08 obfuscurity