ansible-role-mariadb/templates/monit.conf.j2

11 lines
421 B
Plaintext
Raw Normal View History

2023-10-14 10:43:06 +02:00
# {{ ansible_managed }}
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"
2023-05-08 21:13:26 +02:00
if failed unixsocket /run/mysqld/mysqld.sock protocol mysql
username "{{ monit_sql_user }}" password "{{ monit_sql_password }}"
2023-05-08 21:13:26 +02:00
for 3 times within 4 cycles then restart
if 5 restarts with 5 cycles then timeout