Skip to content

Instantly share code, notes, and snippets.

@valguss
Created November 17, 2010 11:17
Show Gist options
  • Save valguss/703281 to your computer and use it in GitHub Desktop.
Save valguss/703281 to your computer and use it in GitHub Desktop.
## 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