monit-general
[Top][All Lists]
Advanced

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

[monit] newbie first configuration problem


From: friofool friofool
Subject: [monit] newbie first configuration problem
Date: Tue, 7 Oct 2008 13:27:49 +0100

Hi,

I tried to make monit up on my server to manage ruby on rails application.
I have some problem when i try to start monit :

address@hidden seb]# /usr/local/bin/monit start all
'mongrel_rails_3003' start: /usr/bin/ruby
'mongrel_rails_3003' failed to start

address@hidden seb]# monit status
monit: no status available -- the monit daemon is not running

my monitrc file is in /usr/local/src/monitrc :

---------
set daemon 30
set logfile /var/log/monit.log
set mailserver 127.0.0.1
set mail-format {from:address@hidden}
set alert address@hidden only on {timeout, nonexist}
set httpd port 4000
include /home/seb/watchdog/*
---------

my application config file in /home/seb/watchdog/ :

---------
check process mongrel_rails_3003
        with pidfile /var/run/mongrel/mongrel.3003.pid
        start program = "/usr/bin/ruby /usr/bin/mongrel_rails cluster::start -C /home/seb/railsproject/cpericard/config/mongrel_cluster.yml --clean --only 3003"
        stop program = "/usr/bin/ruby /usr/bin/mongrel_rails cluster::stop -C /home/seb/railsproject/cpericard/config/mongrel_cluster.yml --only 3003"
if totalmem > 100.0 MB for 5 cycles then restart
if failed host 127.0.0.1 port 3003 protocol http with timeout 10 seconds then restart
---------

The mongrel process start but monit daemon is not runing.

What's wrong with my configuration ?

Thanks a lot for your help !




reply via email to

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