[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Monit restarting Apache stops but doesn't start
From: |
Martin Pala |
Subject: |
Re: Monit restarting Apache stops but doesn't start |
Date: |
Fri, 15 Apr 2011 22:15:33 +0200 |
Based on the config it seems that the monitored apache runs on the same host
(otherwise the start+stop won't be able to do anything with it) => it will be
better to switch to "check process" - Monit will be able to check whether the
process was started and will wait for the start to finish - the "check host" is
remote check which has no control of the remote process, it will call the start
script but won't wait for the process to start so you'll see the result during
next cycle.
Regards,
Martin
On Apr 13, 2011, at 12:12 PM, Jeb Wilkins wrote:
> I've got the following monit script on an Ubuntu 10.04 server.
>
> ====================================
> check host this.host.net with address this.host.net
> every 2 cycles
> start program = "/etc/init.d/apache2 start" with timeout 60 seconds
> stop program = "/etc/init.d/apache2 stop"
> if failed port 80 and protocol http
> and request "/login"
> with timeout 15 seconds
> for 4 cycles
> then restart
> if 3 restarts within 10 cycles then timeout
> ====================================
>
> If a restart is triggered, apache gets turned off but doesn't get
> started again? It is then brought back up by the next cycle.
>
> What is likely to be causing this, where would I look to debug this,
> the server is now just serving static files.
>
> Thanks
>
> jebw
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general