Skip to content

Instantly share code, notes, and snippets.

@berkayunal
Forked from gacha/elasticsearch.monit
Created May 17, 2018 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkayunal/0715ba65805baebdfa24a69e2b64d23c to your computer and use it in GitHub Desktop.
Save berkayunal/0715ba65805baebdfa24a69e2b64d23c 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment