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

Allow querying specific node for check-rabbitmq-node-health #70

Closed
wants to merge 4 commits into from

Conversation

Infraded
Copy link

@Infraded Infraded commented Aug 3, 2017

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

@majormoses majormoses self-requested a review August 4, 2017 17:55
@majormoses
Copy link
Member

@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]
Copy link
Member

@majormoses majormoses Aug 5, 2017

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

@majormoses
Copy link
Member

@Infraded any chance you are gonna pick this back up? Last ping before closing out.

@majormoses
Copy link
Member

closing due to inactivity, if there is desire to pick this up again we can re-open or create a new PR.

@majormoses majormoses closed this Feb 9, 2018
Grissess pushed a commit to wherefortravel/sensu-plugins-rabbitmq that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

check-rabbitmq-node-health picks only first nodes in the cluster
3 participants