Forum Discussion
Http Health monitor
Friends - i have an issue with a http pool where the standard/default http health monitor that comes with the system (GET /\r\n in the Get string and a blank space in the receive) doesn't seem to be working. When i do away with the Get string and perform a simple probe on port 80 (either tcp or http), it is working. Any suggestions?
4 Replies
- Brad_Parker
Cirrus
You could try the http_head_f5 monitor or you could write your own HTTP monitor with a Get string on a known resource and parse the receive stringfor a known response. ">https://support.f5.com/kb/en-us/solutions/public/2000/100/sol2167.html" target="_blank">">https://support.f5.com/kb/en-us/solutions/public/2000/100/sol2167.html
- SeanW_82915
Nimbostratus
The default does a HTTP 0.9 request that some web servers don't respond to. What you may want is something like:
GET / HTTP/1.1\r\nHost: example.com\r\nConnection: Close\r\n\r\nOne other thing to keep in mind is that a web server with multiple virtual hosts on the same IP needs a distinctive
header, so you may need to change the example.com above to the name of your website.Host - Srinivasan_G_31
Nimbostratus
Thanks Sean. This seems to be working. I just left the receive string blank.
- THi
Nimbostratus
I suggest to use a specific receive string. If the receive string is left blank, it will accept any response the server sends back, including error pages (like 4xx/5xx server errors) as valid responses, and will mark the server up. Typically only timeout marks the server down with empty receive string.
You can use some info string from the header part of the response, like 200 OK, or any unique text string from the beginning of the normal response page. Use fiddler, firebug or similar tool to check what a valid response page sends (including headers).
The default http monitor buffer size is 5120 bytes, so the receive string needs to appear within that, especially before any images on the rendered response page.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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