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)
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
check program cleanup with path "/usr/bin/find /data -type f -cmin +60 -delete"
|
|
|
|
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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
2014-12-30 05:31:19 +02:00
|
|
|
if total memory > 50 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
|
|
|
|