[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem at startup (alert from a service which need a few seconds to
From: |
via . lej |
Subject: |
Re: Problem at startup (alert from a service which need a few seconds to start) |
Date: |
Tue, 21 Aug 2007 21:48:21 +0200 |
User-agent: |
Opera Mail/9.23 (Win32) |
>> You can set the monit sleep time (the interval on which it checks the
>> service states)
>> to be longer than the time needed for starting the desired process
>
> either by starting monit with parameters
>
> monit -d 300
>
> which tells monit to run as deamon and check the state of monitored
> services on 300 secs (5mins)
>
> or you can set this time in the monitrc file
>
> set daemon 300
> (which has the same effect as above line)
>
> Change the 300 to some time longer of the time needed to start the
> service, but be careful if you're monitoring other services as well
> bacause you may miss some state of services, or you'll experience some
> downtime, till the monit refreshes
>
> Cheers, Jovan
I think that monit, once it's started, checks immediately the processes, wait
for x seconds (defined in monitrc) and check again....no ?
So, if monit checks processes immediately on daemon-start, changing this
parameter will not solve the problem.
Vianney