monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] Error in monit configuration


From: Giuseppe
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

allow localhost

allow admin:monit

allow @monit

allow @users

 

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…

 

Giuseppe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]