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