monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Apps start from monit - problem


From: Martin Pala
Subject: Re: [monit] Apps start from monit - problem
Date: Mon, 21 Jan 2008 19:43:12 -0800

Monit sets sandbox environment consisting of:

PATH=/bin:/usr/bin:/sbin:/usr/sbin

and several MONIT_* variables which inform the program being executed about the event and allow to customize the according to context.

It is possible that your command line environment contains extra environment variables which are required by mongrel configuration, which are not set when starting via monit. You can add these variables to the startup script.


Martin


On Jan 21, 2008, at 4:53 PM, Blasfamous Tshirts wrote:

Hi,

I am trying to use monit to monitor my ruby on rails application servers (mongrel). The problem is, when I start monit, it is able to start the mongrels, but after that it can not control them any longer. I do not see the mongrel logs and pids created in the place where I specified in the conf file.

Here is my monit conf file:

check process mongrel_9000 with pidfile /home/bliss/test4/tmp/pids/ mongrel.9000.pid start program = "/usr/bin/env PATH=/usr/local/bin/:$PATH mongrel_rails start -C /home/bliss/test4/config/mongrel_9000.yml" stop program = "/usr/bin/env PATH=/usr/local/bin/:$PATH mongrel_rails stop -P /home/bliss/test4/tmp/pids/mongrel.9000.pid"

if memory usage > 35 MB for 4 cycles then restart
if totalmem > 90% for 4 cycles then restart
if cpu > 90% for 4 cycles then restart

check process mongrel_9001 with pidfile /home/bliss/test4/tmp/pids/ mongrel.9001.pid start program = "/usr/bin/env PATH=/usr/local/bin/:$PATH mongrel_rails start -C /home/bliss/test4/config/mongrel_9001.yml" stop program = "/usr/bin/env PATH=/usr/local/bin/:$PATH mongrel_rails stop -P /home/bliss/test4/tmp/pids/mongrel.9001.pid"

if memory usage > 35 MB for 4 cycles then restart
if totalmem > 90% for 4 cycles then restart
if cpu > 90% for 4 cycles then restart
group mongrelsWhen I start monit, I see the applications starting alright, but I do not see any logs or pidfiles created and hence they can no longer be controlled. With the exact same commands, I can start these apps from command line and the logs and pidfiles are created properly. Any clue what is going on here?
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

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