configuration-templates
/monit/debian/templates/jenkins |
@@ -5,5 +5,5 @@ |
check process jenkins with pidfile /var/run/jenkins/jenkins.pid |
start program = "/etc/init.d/jenkins start" |
stop program = "/etc/init.d/jenkins stop" |
if failed port 8090 then restart |
if failed port 8085 then restart |
# if 5 restarts within 5 cycles then timeout |
/monit/debian/templates/tomcat |
@@ -2,10 +2,10 @@ |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
########################################################################### |
|
check process tomcat with pidfile /var/run/tomcat.pid |
start program = "/etc/init.d/tomcat start" |
as uid nobody and gid nobody |
stop program = "/etc/init.d/tomcat stop" |
check process tomcat8 with pidfile /var/run/tomcat8.pid |
start program = "/etc/init.d/tomcat8 start" |
# as uid nobody and gid nobody |
stop program = "/etc/init.d/tomcat8 stop" |
# You can also use id numbers instead and write: |
as uid 99 and with gid 99 |
if failed port 8080 then alert |
# as uid 99 and with gid 99 |
if failed port 8080 then alert |