can someone please steer me in the right direction. I'm completely new to Monit, set it up, everything working fine, but I'm having a problem with mysql.
This is the set up in my conf file:
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 127.0.0.1 port 3306 then restart if 5 restarts within 5 cycles then timeout
But when I try to enable monitoring, it just wont have it. Checked my log files:
monit: 'mysql' process is not running monit: 'mysql' trying to restart monit: 'mysql' start: /etc/init.d/mysql monit: 'mysql' failed to start
I've looked for the mysqld.pid file in that path, but all that's present is mysqld.sock.. Not sure if this has something to do with it. Hope someone can help, cheers!