bloodtech_31480
Mar 22, 2017Nimbostratus
Http monitor problem - F5 load balancer
Hello,
I have a server which on following patch: respons with following string: {"Error":"","Healthy":true}.
I defined a http monitor:
Send string: GET /health HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n\
When I leave the Receive String blank, server is marked as up in the pool (so guess the 200 OK is fine)
However trying to dectect "Healthy":true in the response, or {"Error":"","Healthy":true} - it fails.
I put in the Receive string:
- {"Error":"","Healthy":true} -> this obviously failed, F5 not allowing {
- Put true only -> node marked as down
- Transformed to HEX as suggested on forums: \x7b\x22Error\x22\3a\x22\x22\x2c\x22Healthy\x22\x3atrue\x7d -> this was accepted but node is marked as down
- When I type only two first letters - Er -> node is marked as up
- Adding third letter -> Err -> node marked as down.
Tried GET from F5 itself:
SSH: GET {"Error":"","Healthy":true}
Any help would be apprcieted - how to construct the Receive string to make this work ?
Thanks,
KW