added webui

This commit is contained in:
2021-01-08 14:45:26 +01:00
parent 02ba334032
commit cedf566f74
6 changed files with 22 additions and 13 deletions

10
conf/monit/php-fpm.conf Normal file
View File

@@ -0,0 +1,10 @@
check process PHPpro with pidfile PHPpid
start program = "/usr/bin/systemctl start PHPsrv"
stop program = "/usr/bin/systemctl stop PHPsrv"
if failed unixsocket PHPsock then restart
if failed unixsocket PHPsockfor 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'"