Forum Discussion
ben_stokes_8749
Nimbostratus
Oct 12, 2009http health monitor help
Hi,
I'm trying to configure an http health monitor. My app using port 8080 and the app behind the F5 is Sun Glassfish server 2.1 (java based webservices). I've tried quite a few things already and I guess have come to a brick wall.
If I create a new http health monitor, simply specifying "GET /" in the send string and nothing in the receive string, my nodes are marked as down even though I am able to browse to http://mynode:8080/ and see content on the page.
If I open an ssh session to the F5, and use 'telnet mynode 8080', it connects but as soon as I start typing "GET", the telnet session is terminated. I think this is the reason the health monitor is failing. The app server is ending the http connection as it is not behaving 'normally'.
For the moment I have configured a tcp monitor to check if port 8080 is open, but in our testing environment I have found a node in the pool can crash and it is not marked as down, because port 8080 is still open.
Is there something I can do to 'trick' my app servers into thinking the F5 is a real browsing session? Or is there a better way to do this?
Thanks
- hoolio
Cirrostratus
Hi, - ben_stokes_8749
Nimbostratus
Thanks for the advice ... I put in your send string, now a receive string set to HTTP works, but the nodes are marked down if I use HTTP 200. - hoolio
Cirrostratus
That's progress. Can you check what response the server is sending by looking at the web server access logs; enabling debug on the monitoring daemon, bigd, by running 'b db bigd.debug enable' (output is written to /var/log/bigdlog) or by running a tcpdump like this: - ben_stokes_8749
Nimbostratus
With the debug enabled, I changed the receive string to HTTP 200 and observed the log, it doesn't make a gret deal of sense to me but I think this would be the relevant part:10:15:18.679176: (_main_loop): wfd selected for addr=::ffff:10.20.15.32:8080 pending=1 10:15:18.679198: (_send_active_service_ping): addr=::ffff:10.20.15.32:8080 10:15:18.679230: send_active_service_ping: addr=::ffff:10.20.15.32:8080 writing GET / HTTP/1.1 Host: Connection: Close ...
- hoolio
Cirrostratus
That's just showing the request to the server. Is there anything after that in the bigdlog for the response from 10.20.15.32:8080? - ben_stokes_8749
Nimbostratus
Ahhhh found it ....10:43:04.090645: (_recv_active_service_ping): addr=::ffff:10.20.15.32:8080 10:43:04.090691: (_recv_active_service_ping): addr=::ffff:10.20.15.32:8080 send=GET / HTTP/1.1 Host: Connection: Close regexp=HTTP recv=HTTP/1.1 200 OK X-Powered-By: Servlet/2.5 Server: Sun GlassFish Enterprise Server v2.1 Content-Type: text/xml;charset="utf-8" Date: Tue, 13 Oct 2009 09:43:04 GMT Connection: close
- hoolio
Cirrostratus
Good to hear. - Nit_67494
Nimbostratus
Hi Aaoron, - hoolio
Cirrostratus
Hi Nit, - Nit_67494
Nimbostratus
Hi Aaron,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects