Created
November 7, 2012 10:33
-
-
Save gacha/4030772 to your computer and use it in GitHub Desktop.
Elasticsearch monit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
my monit gave an error when using 'type' had to change to 'protocol'