Forum Discussion
http monitor failed
Trying to go from Cisco ACE to F5.. cannot get this monitor to work on the F5 ..
A simple soultion would be wonderful.. I think the server responds with some kind of rediect 303.
The Cisco was fine .. the F5 doesnt like it !
please keep any suggestions VERY simple, I am new to F5.. and so far everything slightly beyond standard things seem to be a massive complexity with the F5
probe http blah blah interval 20 passdetect interval 5 receive 2 request method get url /asad/adaasdfas/!asdfasd?pyActivity=Code-Security.EndSession&pzAuth=guest expect status 200 399
Many thanks
Adrian
If you use HTTP/1.1, the Host: header is required. You can try a simple GET request without an HTTP version and so on, but some web servers won't like it. My recomendation would be to include HTTP version, include the Host header, and also send a connection close.
Send: GET /asad/adaasdfas/!asdfasd?pyActivity=Code-Security.EndSession&pzAuth=guest HTTP/1.1\r\nHost: hostname\r\nConnection: close\r\n\r\n
If you want to match anything between 200 and 399 as a response, you will need to use a regular expression in the receive string. My recommendation would be to use a request that produces a consistent result so you don't have to guess.
Receive: [23][0-9][0-9]
- LyonsG_85618Cirrostratus
Your HTTP monitor should look something like this:
GET /asad/adaasdfas/!asdfasd?pyActivity=Code-Security.EndSession&pzAuth=guest HTTP/1.1\r\nHost:(if required) \r\n\r\n
Then look for 200 in response field
can i ask why this bit ?
HTTP/1.1\r\nHost:(if required) \r\n\r\n
- LyonsG_85618Cirrostratus
Sorry that is just an example - you may not require all these options.
- Hi, Really sorry as youve been good enough to reply.. i just dont get why all the guff on the end is required.. surley a simple GET and response between 200 and 399 is fine as it was before. I just cannot find any simple solutions to a simple requirement with F5..
- mimlo_61970Cumulonimbus
If you use HTTP/1.1, the Host: header is required. You can try a simple GET request without an HTTP version and so on, but some web servers won't like it. My recomendation would be to include HTTP version, include the Host header, and also send a connection close.
Send: GET /asad/adaasdfas/!asdfasd?pyActivity=Code-Security.EndSession&pzAuth=guest HTTP/1.1\r\nHost: hostname\r\nConnection: close\r\n\r\n
If you want to match anything between 200 and 399 as a response, you will need to use a regular expression in the receive string. My recommendation would be to use a request that produces a consistent result so you don't have to guess.
Receive: [23][0-9][0-9]
- Many thanks for the reply... I will give it go and see what happens
it worked.. !!
brilliant .. many thanks
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