Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gacha
Created November 7, 2012 10:33
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save gacha/4030772 to your computer and use it in GitHub Desktop.
Save gacha/4030772 to your computer and use it in GitHub Desktop.
Elasticsearch monit
check process elasticsearch with pidfile /var/run/elasticsearch.pid
start program = "/etc/init.d/elasticsearch start"
stop program = "/etc/init.d/elasticsearch stop"
if 5 restarts within 5 cycles then timeout
if failed host 127.0.0.1 port 9200 type http then restart
@teebu
Copy link

teebu commented Apr 15, 2016

my monit gave an error when using 'type' had to change to 'protocol'

  • if failed host 127.0.0.1 port 9200 protocol http then restart

Copy link

ghost commented Aug 16, 2016

The pidfile is also in: /var/run/elasticsearch/elasticsearch.pid

For Centos and Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment