Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dlawregiets
Copy link

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.

…stats that are less than the critical threshold.
@obfuscurity
Copy link
Owner

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

@dlawregiets
Copy link
Author

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.

@obfuscurity
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants