updated systemctl path, fixed mysql & php conf
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
check process mysqld with pidfile /var/run/mysqld/mysqld.pid
|
||||
start program = "/usr/bin/systemctl start MYSQLserv"
|
||||
stop program = "/usr/bin/systemctl stop MYSQLserv"
|
||||
start program = "/bin/systemctl start MYSQLserv"
|
||||
stop program = "/bin/systemctl stop MYSQLserv"
|
||||
if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 2 times within 5 cycles then restart
|
||||
if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 4 times within 5 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: MySQL Socket'"
|
||||
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: MySQL Socket"
|
||||
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: MySQL Socket'"
|
||||
|
||||
if not exist for 1 cycles then restart
|
||||
if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: MySQL service'"
|
||||
|
||||
Reference in New Issue
Block a user