diff options
| author | My Name | 2014-12-10 13:09:57 +0100 |
|---|---|---|
| committer | My Name | 2014-12-10 13:09:57 +0100 |
| commit | 5e7fe4497f008969a00bda55c634ea20488dcb2d (patch) | |
| tree | 7da6685de799f47072cf27c37e2f2348f7eabab6 /monit/nginx.conf | |
| parent | ce754fa465c7b1149689495b661a425071c775f6 (diff) | |
| download | dotfiles-5e7fe4497f008969a00bda55c634ea20488dcb2d.tar.gz | |
Added monit config files.
Diffstat (limited to 'monit/nginx.conf')
| -rw-r--r-- | monit/nginx.conf | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
