check process mariadb with pidfile /var/run/mysqld/mysqld.pid
    group database
    group mysql
    start program = "/bin/systemctl start mariadb.service"
    stop  program = "/bin/systemctl stop  mariadb.service"
    if failed host localhost port 3306 protocol mysql with timeout 15 seconds for 3 times within 4 cycles then restart
    if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 3 times within 4 cycles then restart
    #if failed host localhost port 3306 protocol mysql username monit password "MYSQL_MONIT_USER_PASSWORD" with timeout 15 seconds for 3 times within 4 cycles then restart
    #if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql username monit password "MYSQL_MONIT_USER_PASSWORD" for 3 times within 4 cycles then restart
    if 5 restarts with 5 cycles then timeout

#   depend mysql_bin
#   depend mysql_rc
#
#check file mariadb_bin with path /usr/sbin/mariadbd
#   group mysql
#   include /etc/monit/templates/rootbin
#
#check file mariadb_rc with path /etc/init.d/mariadb
#   group mysql
#   include /etc/monit/templates/rootbin

