monit-general
[Top][All Lists]
Advanced

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

[monit] Apps start from monit - problem


From: Blasfamous Tshirts
Subject: [monit] Apps start from monit - problem
Date: Mon, 21 Jan 2008 18:53:16 -0600

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 mongrels
When 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?

reply via email to

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