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:
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