nagios-scripts
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.
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.
Why don't you just set warning to 0 and critical to 1?
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.
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)