[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: manual start and the monit poll interval
From: |
Duane Cox |
Subject: |
Re: manual start and the monit poll interval |
Date: |
Thu, 17 Feb 2005 13:11:01 -0600 |
I get the same kind of results.
when cold starting my machine, monit is a service S99 link to
/etc/rc.d/init.d/monit
Before monit starts, I start all my other services, S30,S40,S50, etc...
But some of my services, although they actually start before monit, take
some time to startup.
So effictively, they have not finished starting up before monit takes off.
I wonder, is there a way to sleep monit?
Duane Cox
----- Original Message -----
From: "Michel Marti" <address@hidden>
To: <address@hidden>
Sent: Thursday, February 17, 2005 4:30 AM
Subject: manual start and the monit poll interval
> If I manually invoke monit start <service> a short time before monit
checks the
> service availability, this leads to unwanted restarts of <service>, since
the
> service has not yet been started completely.
>
> Example:
>
> # monit start myservice
> Feb 17 09:03:14 myhost daemon.err monit[364]: 'myservice' start:
> /etc/init.d/myservice
> Feb 17 09:03:15 myhost daemon.err monit[364]: Monitoring enabled --
service
> myservice
> Feb 17 09:03:18 myhost daemon.err monit[362]: 'myservice' failed, cannot
open a
> connection to INET[localhost:8080]
> Feb 17 09:03:18 myhost daemon.err monit[362]: 'myservice' trying to
restart
> Feb 17 09:03:18 myhost daemon.err monit[362]: Monitoring disabled --
service
> myservice
> Feb 17 09:03:18 myhost daemon.err monit[362]: 'myservice' stop:
> /etc/init.d/myservice
> ...
>
> Since "myservice" takes some time until it listens on localhost:8080,
monit
> restarts it...
>
> How can this prevented? Maybe monit should skip the service test if the
> difference between service start time and service check time is smaller
"poll
> interval"?
>
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>