ansible-role-mariadb/templates/monit.conf
phil fd8662d6f0 Remove unused Monit configuration snippet
We don't use it in this general role
2023-02-07 19:52:29 +01:00

10 lines
574 B
Text

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 ) }}
port 3306 protocol mysql
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
with timeout 15 seconds 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