Page 1 of 1

Linux monitor ElasticSearch

Posted: Wed Sep 20, 2017 8:06 am
by jkinning
I am trying to monitor ElasticSearch process on a RHEL 7.4 server.

Code: Select all

 ./check_nrpe -H elasticl1p -t 30 -c check_services -a 'service=elasticsearch'
  service=elasticsearch: 1
Is there a better way to send a notification if this service is not running? I am guessing the 1 represents one instance running. Is there a better plugin or check to monitor this service?

Re: Linux monitor ElasticSearch

Posted: Wed Sep 20, 2017 8:25 am
by mcapra
I check via the ElasticSearch API. The service could be running while ElasticSearch is totally hung, so I think the API is more reliable. If ElasticSearch is hung, the API will typically also be hung. check_http can tackle this on a basic level.

As a side note, this is probably my favorite place for super specific Nagios plugins and includes ElasticSearch options (even though they're almost all written in Perl :()
https://github.com/HariSekhon/nagios-plugins

Re: Linux monitor ElasticSearch

Posted: Wed Sep 20, 2017 12:07 pm
by cdienger
Thanks for the input mcapra :) I'd add my +1 to your recommendation.