Forum Discussion
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.
10 Replies
- JG
Cumulonimbus
You need an extra pair of "\r\n" after "Close".
- heskez_36146
Nimbostratus
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
- JG
Cumulonimbus
Yes. And actually, remove ":9080" from Host.
- heskez_36146
Nimbostratus
Many, many, many thanks! We tried it and it works!
Best regards, Erik
- heskez_36146
Nimbostratus
Allthough i don't really get why the extra pair of \r\n is needed..
- Hem_66900
Cirrus
Below link would help in understanding setting up Carriage Return (CR) & Line Feed (LF) http://support.f5.com/kb/en-us/solutions/public/2000/100/sol2167.html?sr=31828166
- Kevin_Stewart
Employee
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.
- heskez_36146
Nimbostratus
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.
- JG
Cumulonimbus
Try this:
GET / HTTP/1.0\r\nUser-Agent: F5 BIG-IP Monitor\r\n\r\n - heskez_36146
Nimbostratus
Many,many,many Thanks! This works like a train!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com