Commit 9ca2f16f authored by opi's avatar opi

monit: Add mysql check.

parent 635939bf
check process mysql matching "/usr/sbin/mysqld"
group mysql
start program = "/etc/init.d/mysql start"
stop program = "/etc/init.d/mysql stop"
if failed host localhost port 3306 protocol mysql then restart
if 5 restarts within 5 cycles then timeout
if 1 restart with 1 cycle then alert
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment