Forum Discussion
requests are being made for "; but you want to check the page ";, so [HTTP::host] will not cover what you want to check for. That is ONLY checking the host portion of the URL, and from your question you don't want to check that either, you want to check the content of the page ";
1- set a health check for your pool members to do a GET and look for "Offline" in the page.
2- use an iRule to determine the health of a pool and then re direct otherwise:
when CLIENT_ACCEPTED { set DEFAULT_POOL [LB::server pool] }
when HTTP_REQUEST {
if {[active_members $DEFAULT_POOL] == 0} {
HTTP::respond 301 Location "http://www.google.com"
} else {
pool $DEFAULT_POOL
}
}
Soda Cup thanks for the response back and your response is clear now. However I am still struggling with the following Health Monitor as I need to check the status of the site for "Online" all is good continue to route traffic normal but when I see "Offline" I need to redirect traffic to a "Maintenance" page, I also have a HTTP Profile configured with a failback host to redirect traffic to a "Unavailable" page when all pool members are down. Here's what I have configured for the Health Monitor but it just doesn't seem to work.
Send String: GET /home/a/b/Offline.html\r\n\r\n
Receive String: Online
Receive Disable String: Offline
Any assistance in getting something put together to get me working results would be greatly appreciated.