Why does my health monitor fail?

Created and new http health monitor but as soon as I apply it all servers in the pool are marked down.

ltm monitor http enterprise_heartbeat_mon { defaults-from http destination : interval 5 ip-dscp 0 recv 200 send “GET /Enterprise/login.cmdx\r\n” time-until-up 0 timeout 16 }

From Fiddler:

Request Header GET /Enterprise/login.cmdx HTTP/1.1

Response Header HTTP/1.1 200 OK

Seems pretty simple but I must be missing something. Please advise…

HTTP/1.1 requires a Host header and your send string does not include one. Try:

send “GET /Enterprise/login.cmdx\r\nHost: host.example.com\r\n\r\n”

Thank you very much for your insight. It is still failing though. Forgive my ignorance but what is the best way to test the strings from the F5? ltm monitor http enterprise_heartbeat_mon { defaults-from http destination *:* interval 5 ip-dscp 0 recv 200 send “GET /Enterprise/login.cmdx\r\nHost: nextrelease.sample.com\r\n\r\n” time-until-up 0 timeout 16 }

tcpdump and curl are the best ways to test

Monitors use HTTP 0.9 by default. Try this

GET /Enterprise/login.cmdx HTTP/1.1\r\nHost: example.com\r\nConnection: Close\r\n

See SOL2167 for send string details

Thank you for your assistance. The other issue was the receive string. I was advised I could use header information, thus the “200” recv string. That is incorrect. You have to use something (text, not pictured words) that is actually displayed on page. Once I did that, it worked.

You can use the status line, the response headers, and the HTTP payload to match against.