Created
November 17, 2010 11:17
-
-
Save valguss/703281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Securecentos.com mysql.cfg for Monit (Updated 12082009) | |
check process mysql with pidfile /var/run/mysqld/mysqld.pid | |
group mysql | |
start program = "/etc/init.d/mysql start" | |
stop program = "/etc/init.d/mysql stop" | |
if failed host 127.0.0.1 port 3306 protocol mysql then restart | |
if 5 restarts within 5 cycles then timeout | |
if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql then alert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment