From 5e7fe4497f008969a00bda55c634ea20488dcb2d Mon Sep 17 00:00:00 2001 From: My Name Date: Wed, 10 Dec 2014 13:09:57 +0100 Subject: Added monit config files. --- monit/nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 monit/nginx.conf (limited to 'monit/nginx.conf') diff --git a/monit/nginx.conf b/monit/nginx.conf new file mode 100644 index 0000000..c194f9a --- /dev/null +++ b/monit/nginx.conf @@ -0,0 +1,9 @@ +check process nginx with pidfile /var/run/nginx.pid + group www-data + start program = "/etc/init.d/nginx start" + stop program = "/etc/init.d/nginx stop" + if children > 250 then restart + if loadavg(5min) greater than 2 for 8 cycles then stop + if failed host localhost port 80 type tcp protocol http for 3 times within 5 cycles then alert + if 3 restarts within 5 cycles then alert + if 5 restarts within 5 cycles then timeout -- cgit v1.2.3