Forum Discussion
Health Check Return String Not Working
I have verified that the return code is currently a 302, but I want my health check to "pass" if it is 2xx or 3xx, "fail" anything else and mark the node down. I have tried the following Receive String but it causes both nodes to immediately go red.
^HTTP.1.1\s([2|3]0[0-9])
Any ideas what I've managed to do wrong?
2 Replies
- nathe
Cirrocumulus
Here's a string that should work:
HTTP/1.[01] [23]0[0-9]
Your receive string seems correct. However you are expecting a 1.1 http response, then make sure that:
- You specify the HTTP 1.1 version in your GET String because this is not the default version used by the health monitor.
- You send the host header with the request, this is a requirement for HTTP 1.1.
Example of a HTTP 1.1 GET String with a host set to null:
GET /index.html HTTP/1.1\r\nHost:\r\n\r\n
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