Forum Discussion
Getting HTML Page Title for iRule
,
Thanks for you response, I have already tried health monitor but it does not fulfill the requirement.
Whenever the issue happens on Server in Pool-A it is still responding with 200 OK(desired received string) so F5 does not mark it down.
That's why I have come across with solution HTMP page title but now I am not sure how to fetch it from HTTP Response Header.
Also I am open to any other suggestions.
Hello, sorry for insisting but I still believe a simple way to achieve it would be a properly tuned monitor + irule redirect.
What I meant was checking specific response string instead of just the 200-OK HTTP code.
Configure monitor to check the specific URI and set as your response string something that is uniquely contained in your expected page, so that monitor fails if it's not found (meaning that logout redirect is seen).
When testing monitor, check it against a working server and then against the "problematic" server while you are in the redirect situation, and check what responses are, then confirm monitor fails when "bad page" is seen.
You can test your monitor like this: (echo -e " <monitor string> ";sleep 1) | openssl s_client -connect <server ip>:<server port>
eg
(echo -e "GET /myapplication/ HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n";sleep 1) | openssl s_client -connect 10.10.10.10:443
Another way to do so would be a two-monitor configuration for the pool, and have the second monitor configured with a receive-disable-string so that if monitor sees logout page content in response it marks the pool member down, which would trigger irule redirect.
Hope this helps
CA
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