configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 131  →  ?path2? @ 132
/monit/debian/templates/apache
@@ -8,9 +8,9 @@
stop program = "/etc/init.d/apache2 stop"
# if failed host www-data.example.com port 80 protocol http
# and request "/monit/token" then restart
if cpu is greater than 60% for 2 cycles then alert
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 cpu is greater than 60% for 2 cycles then alert
# 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
/monit/debian/templates/i2pd
@@ -0,0 +1,8 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check process i2pd with pidfile /var/run/i2pd/i2pd.pid
start program "/etc/init.d/i2pd restart"
stop program "/etc/init.d/i2pd stop"
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/mosquitto
@@ -1,3 +1,3 @@
check process mosquitto with pidfile /var/run/mosquitto.pid
check process mosquitto matching mosquitto
start = "/etc/init.d/mosquitto start"
stop = "/etc/init.d/mosquitto stop"
/monit/debian/templates/polipo
@@ -5,5 +5,5 @@
check process polipo with pidfile /var/run/polipo/polipo.pid
start program "/etc/init.d/polipo start"
stop program "/etc/init.d/polipo stop"
if failed host 127.0.0.1 port 8123 type tcp then restart
if failed host 127.0.0.1 port 3128 type tcp then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/rsyslog
@@ -2,7 +2,7 @@
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check process rsyslogd with pidfile /var/run/rsyslogd.pid
check process rsyslogd matching rsyslogd
group system
group rsyslogd
depend on rsyslogd_bin
/monit/debian/templates/samba
@@ -10,8 +10,8 @@
check process smbd with pidfile /var/run/samba/smbd.pid
group samba
depends on smbd_bin
start program = "/etc/init.d/samba restart"
stop program = "/etc/init.d/samba stop"
start program = "/etc/init.d/smbd restart"
stop program = "/etc/init.d/smbd stop"
if failed host 127.0.0.1 port 139 type TCP then restart
# if 5 restarts within 5 cycles then timeout
 
@@ -18,8 +18,8 @@
check process nmbd with pidfile /var/run/samba/nmbd.pid
group samba
depends on nmbd_bin
start program = "/etc/init.d/samba restart"
stop program = "/etc/init.d/samba stop"
start program = "/etc/init.d/nmbd restart"
stop program = "/etc/init.d/nmbd stop"
if failed host 127.0.0.1 port 138 type UDP then restart
if failed host 127.0.0.1 port 137 type UDP then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/snmpd
@@ -2,7 +2,7 @@
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check process snmpd with pidfile /var/run/snmpd.pid
check process snmpd matching snmpd
start program = "/etc/init.d/snmpd start"
stop program = "/etc/init.d/snmpd stop"
if failed host localhost port 161 type udp then restart