Skip to content

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