[Top][All Lists]

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

Re: TCP error

From: Martin Pala
Subject: Re: TCP error
Date: Fri, 17 Nov 2006 23:35:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060809 Debian/1.7.13-0.3

Monit shouldn't send any false alarm - there is probably real sporadic response problem from apache. I recommend to trace the communication using sniffer (tcpdump/snoop/wireshark/...) on the server and client side and analyze the problem - in the case that the apache realy is able to accept the connection, there may be some network problem (firewall, bad cables, etc.)


mikula mali wrote:
I have monit setup to check on our Apache (v 2.2.3) and a couple of other resources with 2min cycles. The problem is that monit reports strange HTTP error very frequently (avery hour or so) although the apache seems to be very healthy as I can see from apache logs -- basically there's no interruption of traffic to the outside world. Then after a couple of minutes, things seem to fix on their own (ie. monit doesnt report an error).

Here's my monit error:

'apache' failed, cannot open a connection to INET[] via TCP

and the entry in monitrc to check on apache is as follows (running on machine):

 if failed host port 80 protocol http
      and request "/monit_token"
      with timeout 30 seconds
      for 3 times within 5 cycles
      then restart

So it is NOT http protocol that fails... monit simply fails to open a TCP port I guess. When there's a success, the following two lines are in the log:

'apache' succeeded connecting to INET[] via TCP
'apache' succeeded testing protocol [HTTP] at INET[] via TCP

Does anyone have a clue what might be the problem here? Maybe something to do with TCP stack and not monit itself? I'm running this on RHEL4/Centos4_x64 system. We get decent traffic (5k hits daily), but nothing too bad and average cpu loads on the server are about 0.1 or so...


Share your latest news with your friends with the Windows Live Spaces friends module.

To unsubscribe:

reply via email to

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