Test only socket connection
This commit is contained in:
parent
64dcfb2fbd
commit
6db4c2d900
1 changed files with 2 additions and 3 deletions
|
@ -2,8 +2,7 @@ check process mariadb with pidfile /run/mysqld/mysqld.pid
|
||||||
group database
|
group database
|
||||||
start program = "/usr/sbin/service mysql start"
|
start program = "/usr/sbin/service mysql start"
|
||||||
stop program = "/usr/sbin/service mysql stop"
|
stop program = "/usr/sbin/service mysql stop"
|
||||||
if failed port 3306 protocol mysql
|
if failed unixsocket /run/mysqld/mysqld.sock protocol mysql
|
||||||
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
|
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
|
||||||
with timeout 15 seconds for 3 times within 4 cycles then restart
|
for 3 times within 4 cycles then restart
|
||||||
if failed unixsocket /run/mysqld/mysqld.sock protocol mysql for 3 times within 4 cycles then restart
|
|
||||||
if 5 restarts with 5 cycles then timeout
|
if 5 restarts with 5 cycles then timeout
|
||||||
|
|
Loading…
Reference in a new issue