Page 1 of 1

Configuring Monit

Posted: Sat Oct 18, 2014 5:28 pm
by edirpedro
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.

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
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.

Re: Configuring Monit

Posted: Wed Nov 05, 2014 11:06 pm
by jhoedram
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.