1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/webkit/etc/monitrc

88 lines
3.6 KiB
Plaintext
Raw Normal View History

2014-12-30 05:31:19 +02:00
###############################################################################
## Monit control file
###############################################################################
###############################################################################
## Global section
###############################################################################
set daemon 60
2014-12-30 07:05:20 +02:00
with start delay 30
2014-12-30 05:31:19 +02:00
set httpd port 2812 and
use address 0.0.0.0
allow 0.0.0.0/0
###############################################################################
## Service (cleanup)
###############################################################################
2015-01-28 10:02:31 +02:00
check program cleanup with path "/usr/bin/find /data -type f -cmin +30 -delete"
2014-12-30 05:31:19 +02:00
every 5 cycles
if status != 0 then alert
###############################################################################
## Services (webkit)
###############################################################################
2014-12-25 12:02:48 +02:00
check process webkit-8080 with pidfile /var/run/webkit-8080.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8080"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8081 with pidfile /var/run/webkit-8081.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8081"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8082 with pidfile /var/run/webkit-8082.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8082"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8083 with pidfile /var/run/webkit-8083.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8083"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8084 with pidfile /var/run/webkit-8084.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8084"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8085 with pidfile /var/run/webkit-8085.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8085"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8086 with pidfile /var/run/webkit-8086.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8086"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8087 with pidfile /var/run/webkit-8087.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8087"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8088 with pidfile /var/run/webkit-8088.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8088"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00
check process webkit-8089 with pidfile /var/run/webkit-8089.pid
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8089"
2014-12-25 13:34:44 +02:00
if uptime > 1 hour then restart
2015-01-28 10:02:31 +02:00
if total memory > 100 MB for 5 cycles then restart
2014-12-25 13:34:44 +02:00
if total cpu > 10% for 5 cycles then alert
2014-12-25 12:02:48 +02:00