Forum Discussion
RobW
Nimbostratus
Jan 30, 2008HTTP Monitor - Java Script
The following monitor was allegedly working fine on a competitors product, but not on the LTM v9.4.3
send "GET /auth/?checkall=true HTTP/1.0\\r\\n\\r\\n"
expect "PASS"
I believe this was never working correctly. If I modify the send string to:
GET /auth/?checkall=true HTTP/1.0\\r\\n\\r\\nConnection: Close\n\n
Receive string error:
400 Bad request
400 Bad request
Connection closed by foreign host.
Once again if I modify the receive string to:
GET /auth/?checkall=true - This cause a Java Script to run and the following valid receive string is displayed.
Monitor Output
PASS
If I list 'PASS' or PASS as the receive string the pool marked a being offline.
Output from the command line of the LTM.
[admin@lb2cmgmt:Active] ~ telnet 10.20.62.65 8080
Trying 10.20.62.65...
Connected to 10.20.62.65.
Escape character is '^]'.
GET /auth/?checkall=true
Monitor Output
PASS
Connection closed by foreign host.
What am I overlooking?
6 Replies
- hoolio
Cirrostratus
I don't think you can specify a Connection header in HTTP v1.0. You only need to use one backslash to escape characters. And there should only be one \r\n between lines. The bigd monitoring daemon appends a trailing \r\n to the request, so you only need to put one at the end. - RobW
Nimbostratus
Aaron, - RobW
Nimbostratus
Thank you for the tip on nc. When I execute the command as listed it works fine. When I set it up as a monitor is fails. I can only believe I'm incorrectly formating the receive string field. I've attached a screen shot of the Monitor send string and receive string. - hoolio
Cirrostratus
That's an odd one. I assume the send string is all on one line and it's just your browser that's wrapping it? - RobW
Nimbostratus
Aaron, - hoolio
Cirrostratus
Hi Rob,
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