monit-general
[Top][All Lists]
Advanced

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

Re: Monit Start at System boot...


From: AJames
Subject: Re: Monit Start at System boot...
Date: Mon, 9 May 2011 04:40:38 -0700 (PDT)


Martin Pala wrote:
> 
> 
> On May 9, 2011, at 11:16 AM, AJames wrote:
> 
>> 
>> 
>> On 6 May 2011 12:26, AJames <address@hidden> wrote:
>> 
>>> 
>>> Hi ,
>>> 
>>> I am using Ubuntu. I placed the following line
>>> 'mo:2345:respawn:/usr/local/bin/monit -Ic /etc/monitrc'  in
>>> '/etc/init.d/rc.local' in the following file as suggested.  But the
>>> monit
>>> service is not running at startup. Please help.
>>> 
>> 
>> 
>> You probably just need to edit /etc/default/monit and change the
>> "startup=0"
>> to "startup=1".
>> 
>> - Matt
>> 
>> --
>> 
>> Thanks matt for reply, I didn't find any file with name monit in /etc.
>> There
>> is one file 'monitrc' in /etc location. I changed the file by adding the
>> parameter but it is giving exception.
> 
> The file /etc/default/monit is part of Ubuntu's monit package - if you
> installed monit using the binary distribution from
> http://www.mmonit.com/monit/download/ then it is not present.
> 
> The line which you added to /etc/init.d/rc.local is for /etc/inittab - it
> cannot be used in rc.local.
> 
> You can add following line to the /etc/init.d/rc.local instead:
> --8<--
> /usr/local/bin/monit -c /etc/monitrc 
> --8<--
> ... this will start monit in daemon mode.
> 
> Alternatively you can integrate monit with upstart this way:
> 
> 1.) place the attached file as /etc/init/monit.conf
> 2.) run "initctl reload-configuration" command
> 3.) you can then start monit like this: "start monit"
> 
> Regards,
> Martin
> 
> 
> 
>  
> 
> 
> 
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
> 


Hi Martin, 

Its working Thank You.


There is one more query.  I am having some services (ex:tomcat,apache) in
server2 and monit installed in server 1. Is there any way to monitor and
start the services in server 2 from server 1 .


//BR

-- 
View this message in context: 
http://old.nabble.com/Monit-Start-at-System-boot...-tp31558016p31576023.html
Sent from the monit-general mailing list archive at Nabble.com.




reply via email to

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