Linux monitor ElasticSearch

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Linux monitor ElasticSearch

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Linux monitor ElasticSearch

Post 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
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Linux monitor ElasticSearch

Post by cdienger »

Thanks for the input mcapra :) I'd add my +1 to your recommendation.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked