monit-general
[Top][All Lists]
Advanced

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

Re: [monit] newbie first configuration problem


From: Martin Pala
Subject: Re: [monit] newbie first configuration problem
Date: Wed, 8 Oct 2008 21:15:03 +0200

The error is displayed because monit wasn't able to contact the monit http server which provides the interface for mangling the services and getting status.

The reason is to be that you have not started monit in background, just called the "monit start all"  which tries to start the services in it's own context and finishes.

To start monit in background (as deamon) just run:

bash# /usr/local/bin/monit                  
Starting monit daemon with http interface at [*:2812]

(in your case it will listen on port 4000)


Martin


On Oct 7, 2008, at 2:27 PM, friofool friofool wrote:

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 !



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

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