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

Fix case when filter returns no queue to work on #90

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

Conversation

AvnerCohen
Copy link

If a Q does not exist, the plugin will fail with a devide by zero exception.
In our use case, we sometimes monitor queues that will be deleted for a while before added back.
This will avoid failing with the non descriptive 'Illegal division by zero' error.

$> /opt/plugins/check_rabbitmq_queue -H $HOSTNAME --port=$PORT -u $username -p $password --filter NON_EXISTING_QUEUE -c 400,400,400
Illegal division by zero at /opt/plugins/check_rabbitmq_queue line 196.

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.

None yet

1 participant