Skip to content

Instantly share code, notes, and snippets.

@teebu
Forked from gacha/elasticsearch.monit
Last active April 15, 2016 19:14
Show Gist options
  • Save teebu/e2617667da2380ad31a90e245dace539 to your computer and use it in GitHub Desktop.
Save teebu/e2617667da2380ad31a90e245dace539 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 protocol http then restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment