Forum Discussion
SeanW_82915
Nimbostratus
Jun 23, 2009HTTP Monitor and checking http headers
I'm monitoring several web servers and wanted to come up with a health monitor that just checks the HTTP response code. I needed two... One that accepts 200/301/302 and one that also accepts an author...
hoolio
Cirrostratus
Jun 23, 2009Hi Sean,
Thanks for posting your solution. I don't think the Connection header was implemented in HTTP 1.0, so you might be better off using HTTP 1.1 for the request. HTTP 1.1 requires a Host header, but not a value for it. If you don't want to specify the host header value, you can leave it blank:
GET / HTTP/1.1\r\nHost: \r\nConnection: Close\r\n
Also, bigd, the monitoring daemon, will add one or two carriage return / line feeds to the end of the send string (varying by version). It's worth it to verify for your particular version, whether your configured send string ends up having two and only two CRLF's at the end on the actual requests made to the pool members.
Aaron
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