-
Notifications
You must be signed in to change notification settings - Fork 506
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
check_elasticsearch_*: feature request: Support multiple hosts #359
Comments
I had considered this a few years ago for not just this but other cluster plugins as well. It seems simpler and safer to abstract this cluster connectivity functionality, so I've written 2 ways to do that here in the readme and provided all the code and configuration links there too: https://github.com/HariSekhon/Nagios-Plugins#high-availability--multi-master-testing |
why find_active_server.py doesn't support username and password? |
@sharkyzz good question - find_active_server.py was designed to be fast (hence multi-threaded) and if you look at all the use cases of the subclassed adjacent find_active_*.py programs (including This isn't something I'm working on right now due to other work priorities but you're welcome to submit a patch for it. |
Well there is an advantage to having it self-contained in the plugins. Responding to the 2 methods in your referenced documentation:
|
@hansbogert valid points. There is already a I had intended to use the elasticsearch python library a couple times during my days with Elasticsearch 2.x and 5.x (it's still commented out in
I'm don't mind reviewing and accepting Pull Requests if you want to fork different versions of these plugins (under new names to not impact anybody using these versions), especially if switching to use the Elasticsearch python library but I right now I don't currently use Elasticsearch any more so am not actively developing new functionality as I solved all my use cases at the time with the existing code. |
The elasticsearch plugins, do not allow multiple
-H
parameters. The plugins should be able to do a fallback on a list of elasticsearch nodes and only give an error if all nodes are down, and otherwise adhere to the semantics of the elastic API. This would make the most sense with a clustered solution like elasticsearch imho, since we are interested in cluster-wide stats and not node-specific stats (there are exceptions of course).Would this proposed functionality be merged if it were implemented, or are there objections?
The text was updated successfully, but these errors were encountered: