Add Monit check address
This commit is contained in:
parent
6d93973878
commit
73bf0925bc
2 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@ check process mariadb with pidfile /run/mysqld/mysqld.pid
|
|||
group database
|
||||
start program = "/usr/sbin/service mysql start"
|
||||
stop program = "/usr/sbin/service mysql stop"
|
||||
if failed host {{ mariadb.bind_address|default( ansible_default_ipv4.address ) }}
|
||||
if failed host {{ mariadb.monit_check_address | default(ansible_default_ipv4.address) }}
|
||||
port 3306 protocol mysql
|
||||
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
|
||||
with timeout 15 seconds for 3 times within 4 cycles then restart
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue