11 lines
622 B
Plaintext
11 lines
622 B
Plaintext
check process PHPpro with pidfile PHPpid
|
|
start program = "/bin/systemctl start PHPsrv"
|
|
stop program = "/bin/systemctl stop PHPsrv"
|
|
if failed unixsocket PHPsock then restart
|
|
if failed unixsocket PHPsock for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: phpPHPver-fpm socket'"
|
|
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: phpPHPver-fpm socket'"
|
|
|
|
if not exist for 1 cycles then restart
|
|
if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: phpPHPver-fpm service'"
|
|
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: phpPHPver-fpm service'"
|