monit-general
[Top][All Lists]
Advanced

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

apache restarted too often?


From: Dirk-Jan C. Binnema
Subject: apache restarted too often?
Date: Tue, 24 Feb 2004 09:57:35 +1100
User-agent: Mutt/1.5.5.1+cvs20040105i

Hi,
                                                                                
                       
I am using monit (4.4.1 on Debian) to monitor an Apache webserver, and
I am seeing the following behaviour:
                                                                                
                       
(access.log):
xxx.xxx.xxx.xxx - - [19/Feb/2004:08:52:47 +0100] "GET / HTTP/1.1" 200 27362 "-" 
"monit/4.1.1"
                                                                                
                       
Which seems like a valid response; however, monit still decides to
restart apache:
                                                                                
                       
Restarted Service apache
        Date: Thu, 19 Feb 2004 08:52:48 +0100
        Host:   www.xxx.yyy
        Event: 'apache' failed protocol test [HTTP] at INET[www.xxx.yyy:80].
                                                                                
                       
My monitrc says this:
                                                                                
                       
check process apache with pidfile /var/run/apache.pid
    start program = "/etc/init.d/apache start"
    stop program  = "/etc/init.d/apache stop"
    if failed host www.xxx.yyy port 80 protocol http
       and request "/" then restart
                                                                                
                       
I see this happening many times during a day (but not every time monit
checks). It does seem to correlate with the website getting more hits;
the website is still fully reachable while monit thinks it's not. 
                                                                                
                       
Any hints on what is happening?
                                                                                
                       
Thanks in advance,
Dirk.


-- 
-----------------------------------------------------------
 Dirk-Jan C. Binnema  email:  <djcb[at]djcbsoftware[dot]nl>
     [djcb]              im:          address@hidden
-----------------------------------------------------------
GPG:      BB49 41D7 053D E5F1 F333 586E C530 CBC3 4352 A39F
-----------------------------------------------------------




reply via email to

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