1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/webkit/etc/monitrc

88 lines
3.6 KiB
Plaintext
Raw Normal View History

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