Forum Discussion
HTTP monitor match string
Hi Guys,
I got a question about the match receiving string in HTTP monitor. for example. one of the application is requesting F5 to monitor by http monitor, and keep pool member enabled when receiving "2" from response. disable pool member when receiving "1". however, when the server is responding to GET request, it also replied with 200 OK. which means it will always have a matching 2 in the return string. is there any good way I can have F5 ignore "200 OK" but only look for that specific string "2"
- Jad_Tabbara__J1
Cirrostratus
Hi Marcus,
I recommend you to send something more specific than "2" or "1".
Because the sytem applies a grep on the response received for the monitored URL.
One letter or one digit will generates a lot of false positive... Instead of responding "1" and "2" configure your server to send for example "hostname.domain.com disabled" and "hostname.domain.com enabled"
Then modify you monitor.
Give me a feedback
Regards
- Stanislas_Piro2
Cumulonimbus
Hi,
I guess you can use following receive string
\r\n\r\n.*2
It may search the 2 in the payload (after the blank line).
But I agree JTI a longer string may be better except if the answer is only 2 and then you may use
\r\n\r\n2
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