configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 34  →  ?path2? @ 35
/monit/debian/templates/jenkins
@@ -0,0 +1,9 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
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 5 restarts within 5 cycles then timeout
/monit/debian/templates/postgresql
@@ -0,0 +1,12 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
# Where 9.6 is the postgresql version.
 
check process postgresql with pidfile /var/run/postgresql/9.6-main.pid
start program = "/etc/init.d/postgresql start"
stop program = "/etc/init.d/postgresql stop"
if failed unixsocket /var/run/postgresql/.s.PGSQL.5432 protocol pgsql then restart
if failed port 5432 protocol pgsql then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/rabbitmq
@@ -0,0 +1,9 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check process rabbitmq with pidfile /var/run/rabbitmq/pid
start program = "/etc/init.d/rabbitmq-server start"
stop program = "/etc/init.d/rabbitmq-server stop"
if failed port 5672 then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/redis
@@ -0,0 +1,10 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check process redis with pidfile /var/run/redis/redis-server.pid
start program = "/etc/init.d/redis-server start"
stop program = "/etc/init.d/redis-server stop"
if failed port 6379 then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/sphinxsearch
@@ -0,0 +1,9 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check process sphinxsearch with pidfile /var/run/sphinxsearch/searchd.pid
start program = "/etc/init.d/sphinxsearch start"
stop program = "/etc/init.d/sphinxsearch stop"
if failed port 9312 then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/tomcat
@@ -0,0 +1,11 @@
###########################################################################
## 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"
# You can also use id numbers instead and write:
as uid 99 and with gid 99
if failed port 8080 then alert