-
Notifications
You must be signed in to change notification settings - Fork 67
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
Allow querying specific node for check-rabbitmq-node-health #70
Conversation
@Infraded Thanks for the contribution and sorry for not getting to it sooner. Can you fixup the tests and give me a testing artifact? while I would prefer a unit or integration test I would accept anything that demonstrates input and output. Just running the commands and capturing that here, linking a gist, or even a screenshot. |
node_prefix = config[:node_prefix] | ||
|
||
# Determine node hostname to query, as this may not be the same as connection hostname | ||
node_host = if config[:node_host] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to address the ABC size I'd move this into its own own function such as determine_hostname
or set_hostname
@Infraded any chance you are gonna pick this back up? Last ping before closing out. |
closing due to inactivity, if there is desire to pick this up again we can re-open or create a new PR. |
Prep for bonsai asset
Pull Request Checklist
Is this in reference to an existing issue?
Yes, fixes #43
General
Update Changelog following the conventions laid out on Keep A Changelog
Update README with any necessary configuration snippets
Binstubs are created if needed
RuboCop passes
Existing tests pass
New Plugins
Tests
Add the plugin to the README
Does it have a complete header as outlined here
Purpose
Existing check only looks at the first node in the node list. This leaves node health unknown for all other nodes in a cluster. This update allows the check to determine the running system's node name (using defaults matching RMQ), or allows it to be specified in the check definition.
Known Compatibility Issues