Re: Monitor always returns HTTP 200

2013-05-03 Thread James Bensley
On 3 May 2013 14:49, Lukas Tribus wrote: > Hi James, > >> I am packet capturing on a client (172.22.0.220, not in the monitor >> subnet), browsing to the monitor uri (GET /oowahboh6eibooca) you can >> see at 14:08:24 I get a response "200 OK". Then I refresh the page 2 >> seconds later at 14:08:26

RE: Monitor always returns HTTP 200

2013-05-03 Thread Lukas Tribus
Hi James, > I am packet capturing on a client (172.22.0.220, not in the monitor > subnet), browsing to the monitor uri (GET /oowahboh6eibooca) you can > see at 14:08:24 I get a response "200 OK". Then I refresh the page 2 > seconds later at 14:08:26.215969 and at 14:08:26.217989 I get a 404 > resp

Re: Monitor always returns HTTP 200

2013-05-03 Thread James Bensley
Hi Willy, Thanks for clearing that up; On 3 May 2013 12:28, Willy Tarreau wrote: > As explained in the doc, "monitor-net" unconditionally returns 200 to > all connections coming from the specified network. > > If your request comes from another network, then "monitor fail" will > apply to reques

Re: Monitor always returns HTTP 200

2013-05-03 Thread Willy Tarreau
Hi James, On Thu, May 02, 2013 at 04:55:16PM +0100, James Bensley wrote: > Hi all, > > I have configured haproxy using the below configuration. No matter > what URL I browser to I always receive a HTTP 200 response to my > browser. If I comment out the ACL and three monitor lines from the > front

Re: Monitor always returns HTTP 200

2013-05-03 Thread James Bensley
Hi guys, Thanks for the responses, my replies are below! On 2 May 2013 17:48, Lukas Tribus wrote: >> I always receive a HTTP 200 response to my browser > > How do you know that? tcpdump > In what condition does this happen (when you have less than 2 > backends alive or even with 2 or more back

Re: Monitor always returns HTTP 200

2013-05-02 Thread Bryan Talbot
On Thu, May 2, 2013 at 8:55 AM, James Bensley wrote: > acl backend_down nbsrv(http--servers) lt 2 # HAProxy can see > lee than 2 backend servers > monitor-uri /checkuri > monitor-net 172.22.0.0/24 What's the address of the computer making the requests? If it's in the 1

RE: Monitor always returns HTTP 200

2013-05-02 Thread Lukas Tribus
Hi James! (sorry for repost, first mail was accidentally html) > I always receive a HTTP 200 response to my browser How do you know that? Do you have a browser extension or are you using tcpdump/wireshark? Can you show this with a curl request, so that we understand whats going on excatly? Some

RE: Monitor always returns HTTP 200

2013-05-02 Thread Lukas Tribus
Hi James! > I always receive a HTTP 200 response to my browser How do you know that? Do you have a browser extension or are you using tcpdump/wireshark? Can you show this with a curl request, so that we understand whats going on excatly? Something like this should do the job: curl -vv http://1.2

Monitor always returns HTTP 200

2013-05-02 Thread James Bensley
Hi all, I have configured haproxy using the below configuration. No matter what URL I browser to I always receive a HTTP 200 response to my browser. If I comment out the ACL and three monitor lines from the frontend configuration, normal behaviour is resumed. I have that gut feeling that I have do