monit-general
[Top][All Lists]
Advanced

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

Re: newbie, only starts process when using monit start <processname>


From: Mark Lussier
Subject: Re: newbie, only starts process when using monit start <processname>
Date: Sat, 5 May 2007 16:31:24 -0700

Sorry, sat on my blaclberry and it replied

M

----- Original Message -----
From: address@hidden <address@hidden>
To: This is the general mailing list for monit <address@hidden>
Sent: Sat May 05 15:24:10 2007
Subject: Re: newbie, only starts process when using monit start <processname>

Ok, so I am new to monit...I need a little more to go on that just "M" :)

Mark Lussier wrote: 

        
        M
        
        ----- Original Message -----
        From: address@hidden <address@hidden> <mailto:address@hidden> 
        To: address@hidden <address@hidden> <mailto:address@hidden> 
        Sent: Sat May 05 14:14:56 2007
        Subject: newbie, only starts process when using monit start 
<processname>
        
        here's my monitrc file...
        
        #===== startup
        set daemon 60
        
        #===== http access
        set httpd port 2812 and
             allow admin:test
        
        #===== log file
        #set logfile syslog facility log_daemon
        set logfile /var/log/monit.log
        
        #===== rails_toucan_manager
        check process rails_toucan_manager
            with pidfile "/home/me/workspace/rails_toucan/log/manager.pid"
            mode active
            start program = "/usr/bin/ruby 
        /home/me/workspace/rails_toucan/script/runner2 
--pidfile=log/manager.pid 
        --environment=production 'Manager.start' &"
        
        
        
        
        
        When I run "sudo monit start rails_toucan_manager", I see this in the 
log...
        
        [CDT May  5 16:03:07] info     : Monit has not changed
        [CDT May  5 16:03:27] error    : 'rails_toucan_manager' process is not 
        running
        [CDT May  5 16:03:37] error    : 'rails_toucan_manager' process is not 
        running
        [CDT May  5 16:03:40] info     : 'rails_toucan_manager' start: 
/usr/bin/ruby
        [CDT May  5 16:03:47] info     : 'rails_toucan_manager' process is 
        running with pid 8214
        
        
        
        now when I kill process 8214, I see this in the log...
        
        [CDT May  5 16:12:48] error    : 'rails_toucan_manager' process is not 
        running
        [CDT May  5 16:12:58] error    : 'rails_toucan_manager' process is not 
        running
        
        
        
        
        What I REALLY want is for monit to start the process !  Thats the whole 
        point.  I must be doing something really dumb.  I am also running on 
        ubuntu feisty.
        
        
        
        Here is the output from monit -Iv...
        monit: Debug: Adding credentials for user 'admin'.
        Runtime constants:
         Control file       = /etc/monit/monitrc
         Log file           = /var/log/monit.log
         Pid file           = /var/run/monit.pid
         Debug              = True
         Log                = True
         Use syslog         = False
         Is Daemon          = True
         Use process engine = True
         Poll time          = 60 seconds
         Mail server(s)     = localhost
         Mail from          = (not defined)
         Mail subject       = (not defined)
         Mail message       = (not defined)
         Start monit httpd  = True
         httpd bind address = Any/All
         httpd portnumber   = 2812
         httpd signature    = True
         Use ssl encryption = False
         httpd auth. style  = Basic Authentication
        
        The service list contains the following entries:
        
        Process Name          = rails_toucan_manager
         Pid file             = /home/me/workspace/rails_toucan/log/manager.pid
         Monitoring mode      = active
         Start program        = /usr/bin/ruby 
        /home/me/workspace/rails_toucan/script/runner2 
--pidfile=log/manager.pid 
        --environment=production Manager.start &
         Pid                  = if changed 1 times within 1 cycle(s) then alert
         Ppid                 = if changed 1 times within 1 cycle(s) then alert
        
        System Name           = ubuntu-server-feisty-fawn-lamp
         Monitoring mode      = active
        
        
-------------------------------------------------------------------------------
        monit daemon at 6625 awakened
        
        
        --
        To unsubscribe:
        http://lists.nongnu.org/mailman/listinfo/monit-general
          
        
        
________________________________


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



reply via email to

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