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?

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:

  1. You specify the HTTP 1.1 version in your GET String because this is not the default version used by the health monitor.
  2. 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