Wanted to monitor elasticsearch and opensearch through check_mk

Hi Team,

I have couple of Elasticsearch and opensearch servers which I need to monitor it through check_mk agent. I followed the document and configured accordingly without any luck. Has anyone succeeded implementing this?

Can someone please help me to monitor those?

This is the link I followed and did not get any luck with it or if I am missing anything?

You mean you tiried the following ?
image

Yes - I tried doing that but did not work

So, that’s the special agent with which you basically connect via the API. What’s the error message?

I just installed check_mk agent on that server and tried running that rule. Will that not work? Or do I need to install any specific agent?

You don’t have to install anything.
By configuring the bleow rule, you can query your elasticsearch instance directly:

Does that mean it would leverage the check_Mk agent installed on server?

No, this will connect to your elasticsearch instance directly via the API.

Ok - Does that mean it would connect to elasticsearch directly on URL?

For example if my NMS IP is 192.168.1.170 and elasticsearch is 192.168.1.180 and if I am adding rule to monitoring the elasticsearch then 192.168.1.170 would initiate connection to 192.168.1.180 directly? on this URL? https://192.168.1.180:9200/_cat/indices?v

Yes I verified with the packet capture and queries are directly being sent to the server. Still I am getting error. Here is the error message

You can try to run the special agent on the command line to see where its failing.

It could be https: Elasticsearch cluster moniting while using TLS / HTTPS.