Configuring Monit
Configuring Monit
There is only two weeks I'm using Vesta and MySQL stopped working twice and when I look at Services, the mysql service is running, Vesta didn't noticed the problem. I don't have any big application running on the server, just for development. So I decided to install Monit to help this, but i need to be sure if the configuration is enough.
I would like to know if I really need to use monit to check the other services like apache2, ningx, etc. I don't know if I can trust only on Vesta Services page.
Code: Select all
check process mysql with pidfile /var/run/mysqld/mysqld.pid
group database
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
Re: Configuring Monit
I have the same problem. I know that MySQL is stopped due to lack of memory, and do not know how to fix it, but if my vesta notify me when it stops mysqld.