configuration-templates
/monit/debian/templates/solr |
@@ -3,7 +3,7 @@ |
########################################################################### |
|
# Debian tomcat-solr |
check process tomcat8 matching tomcat8 |
check process tomcat8 with pidfile /var/run/tomcat8.pid |
start program "/etc/init.d/tomcat8 restart" |
stop program "/etc/init.d/tomcat8 stop" |
if failed host 127.0.0.1 port 8983 type tcp then restart |
/monit/debian/templates/apache |
@@ -12,5 +12,5 @@ |
if cpu > 80% for 5 cycles then restart |
if totalmem > 50% for 5 cycles then restart |
if children > 250 then restart |
if loadavg(5min) greater than 10 for 8 cycles then restart |
# if 3 restarts within 5 cycles then timeout |
if loadavg(5min) greater than 10 for 8 cycles then stop |
# if 3 restarts within 5 cycles then timeout |