Hi All,
        We have this in our monit.conf. Earlier it was working smoothly
when mysql goes down. Recently I just tried to stop mysqld and the monit
did not restart it. But in the top I can see monit is running and I am
using upstart so I just kill and it respawn again. Below is part of the
config file.


check process mysqld with pidfile /var/run/mysqld/mysqld.pid
   start program = "/etc/init.d/mysqld start"
   stop program = "/etc/init.d/mysqld stop"
   if failed host 127.0.1.1 port 3306 protocol mysql then restart
   if 5 restarts within 5 cycles then timeout


Regards,
Frwa.
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to