Forum Discussion
rjordan
Nimbostratus
Oct 27, 2009Monitoring a HTTP 204 response
We are load balancing a 3rd party close source HTTP app. When we asked for a page that can be used as a health check, we were given a page that returns a 204 response (no content). I tried various methods to monitor this but in every case the member is marked down. Here are some things that I tried:
HTTP monitor - Send string: GET /queryable - Receive string: HTTP/1.x 204 No Content
HTTP monitor - Send string: GET /queryable - Receive string: 204
HTTP monitor - Send string: GET /queryable - Receive string:
I verified externally that requests to this page do in fact return "HTTP/1.x 204 No Content" in the headers. I also ran tcpdump from the load balancer, but I'm not too sure of the output. Here is what I found:
0x0000 00d4 0800 4500 0034 e822 4000 4006 24aa ....E..4."@.@.$.
0x0010 0a0a 0ce7 0a0a 0cfd 1f9a be02 051c 495b ..............I[
0x0020 ca52 e327 8010 05a8 7231 0000 0101 080a .R.'....r1......
0x0030 2f5c a179 97be 8ec9 /\.y....
Is anyone doing something similar? If so, please let me know how to accomplish this.
Thanks.
- hoolio
Cirrostratus
There aren't any HTTP headers in the tcpdump snippet you've posted. Are you sure that's the full response the server sends in response to the monitor request? - rjordan
Nimbostratus
Thanks for the quick response. I modified the send string as requested and I now see some interesting stuff in the tcp dump. Here is my GET request: - rjordan
Nimbostratus
Actually, changing my response string toHTTP/1.1 204 No Content
- hoolio
Cirrostratus
Most servers will respond with an empty host header value, so try to use Host: with no value. - T_Kapanka_13663
Nimbostratus
How did you get this to work? What kind of monitor were you using? When I try to create a 204-based monitor, it always marks the pool as down. I'm using the web console to the LTM v11.4.
Send String: GET /isAlive\n\r
Receive String: HTTP/1.1 204 No Content
From this post, it sounds like it can't be done: https://devcentral.f5.com/questions/health-monitors-and-status-codes but it sounds like you were able to. Thoughts?
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