Problems with http health monitor

Hi,

We’ve created an health monitor to receive a string “1000” which is found on the web page we’re trying to monitor.

Our webserver is IBM Wepshere

The string SEND part is: GET /index.html HTTP/1.1\r\nHost: ourhost.domain.com:9080\r\nConnection: Close\r\n

Receive string is: 1000

Somehow the pool member give status down when this monitor is applied. While our webserver shows the correct page. We’ve seen in our firewall logs traffic at port 9080 is accepted by the webserver.

What else could we have been overlooking.

You need an extra pair of “\r\n” after “Close”.

Hi, thanks for replying. The syntax should be like this? GET /index.html HTTP/1.1\r\nHost: ourhost.domain.com:9080\r\nConnection: Close\r\n\r\n

Yes. And actually, remove “:9080” from Host.

Many, many, many thanks! We tried it and it works!

Best regards, Erik

Allthough i don’t really get why the extra pair of \r\n is needed..

The two carriage returns, as part of the RFC specification, indicates to the server the separation between methods/headers and any payload. There’s no payload, so it indicates the end of the request. Previous versions of LTM automatically inserted these carriage returns. Newer versions do not.

Below link would help in understanding setting up Carriage Return (CR) & Line Feed (LF) 404 Page not found | BIG-IP Documentation

Thanks for all support and explanation. So now we’d like to improve our health monitoring. At this point the health monitor points towards a floating ipaddress. We’d like to cut this part out and the rule should be like this:

GET /index.html HTTP/1.1\r\nUser-Agent: F5 BIG-IP Monitor\r\nConnection: Close\r\n\r\n

However this syntax seems to be incorrect because all members are put offline immediately.

Try this:

GET / HTTP/1.0\r\nUser-Agent: F5 BIG-IP Monitor\r\n\r\n

Many,many,many Thanks! This works like a train!