|Subject:||[monit] Error in monit configuration|
|Date:||Sat, 15 Aug 2009 18:53:55 +0200|
Hi, I would like to use monit in a simple way: monitor a process and if the process goes down then execute a script.
This is my monitrc:
set logfile /var/log/monit.log
set daemon 5
set httpd port 2812
use address localhost
check process mysql with pidfile /var/db/mysql/hostname.domain.local.pid
if failed port 3306 protocol mysql for 1 cycles then exec "/home/manager/monit.sh"
The problem is that if I manually stop mysql to check if monit works well, the script is not executed, and in the log file I find every 5 seconds these 2 lines:
[ Aug 15 18:41:02] error : 'mysql' process is not running
[ Aug 15 18:41:02] error : monit: Start or stop method not defined -- process mysql
I don’t want monit to try to restart the process, but only to execute my script, what did I failed in the configuration file?
A big thanks in advance…
|[Prev in Thread]||Current Thread||[Next in Thread]|