Forum Discussion
cxcal_18687
Nimbostratus
Jan 22, 2009Unruly Health Monitor
This been a thorn in my side for weeks now...
Trying to get a HTTP monitor to do a simple "GET /ms/alive.txt HTTP/1.1 \nHOST:\n" with a Receive Value of "Alive!"
The link is reachable from the browser so I know there are no typo's with it.
Any advice on how to get this to work?? I'm stumped!!
Thanks.
- Deb_Allen_18Historic F5 AccountRun a tcpdump on the server vlan, filtering for the self-IP address of the active LTM and one of the servers to which the monitor is applied.
- dennypayne
Employee
The app may be looking for a valid host header. If you have access to HTTPWatch or Fiddler(IE) or Live HTTP Headers (Firefox), you can see what the browser is actually sending and replicate that in your send string.curl -H "Host:" http:///ms/alive.txt
- cxcal_18687
Nimbostratus
Thanks.. I will reply back with my finding first thing in the morning.. - dennypayne
Employee
Just to illustrate, here's the output when I don't send a host header:[root@xxxxx:Active] config curl -H "Host:" http://10.241.34.107/ms/alive.txt 400 Bad Request Bad Request Your browser sent a request that this server could not understand.
[root@xxxxx:Active] config curl -H "Host: xxxx.com" http://10.241.34.107/ms/alive.txt The requested URL was not found on this server.
- hoolio
Cirrostratus
Another thing to consider is replacing the \n's (LF) with \r\n (CRLF). HTTP header lines should be separated with a carriage return and a line feed--not just a line feed. - Deb_Allen_18Historic F5 Accountwas wondering about that myself (\n v. \r\n)
- hoolio
Cirrostratus
RFC2616 states:b monitor http_1.1_test_monitor list monitor http_1.1_test_monitor { defaults from http recv "200 OK" send "GET / HTTP/1.1\nHost: \nConnection: Close" }
- Deb_Allen_18Historic F5 Accounthmmmmm, thanks for the input.
- hoolio
Cirrostratus
Hi Deb, - cxcal_18687
Nimbostratus
I got the monitor to work with SOL3224 (GET /servertest.html HTTP/1.1\nHost: \nConnection: Close\n)
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects