Add monit monitoring
This commit is contained in:
parent
a8e8382eca
commit
04be772437
4 changed files with 31 additions and 5 deletions
8
templates/monit.j2
Normal file
8
templates/monit.j2
Normal file
|
@ -0,0 +1,8 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
check process php-fpm with pidfile /run/php/php{{ php_version.stdout }}.pid
|
||||
group webserver
|
||||
start program = "/usr/sbin/service php{{ php_version.stdout }}-fpm start"
|
||||
stop program = "/usr/sbin/service php{{ php_version.stdout }}-fpm stop"
|
||||
if failed unixsocket /run/php/{{ php_version.stdout }}-fpm.sock for 3 cycles then restart
|
||||
if 3 restarts within 5 cycles then timeout
|
Loading…
Add table
Add a link
Reference in a new issue