Forum Discussion
Joe_Curl_105786
Nimbostratus
May 09, 2007HTTP::respond
I am trying to get the F5 to respond back with a site down page when the nodes are down. The iRule I am using is below. Basically I see it log the event, however the browser does not appear to be getting the html script. Thanks in advance for any help.
Joe
when HTTP_REQUEST {
set cli [IP::remote_addr]
}
when LB_FAILED {
HTTP::respond 200 content "Healthcare Payment System
Healthcare Payment System
System Unavailable
The page you are trying to access is currently unavailable. Please try again later. We apologize for any inconvenience.
"
log local0. "Client: $cli lbfailed"
}
- hoolio
Cirrostratus
I expect you're seeing this error as well in the ltm log file:when HTTP_REQUEST { set retries 0 } when LB_FAILED { if {[active_members [LB::server pool]] > 0 && ($retries < 3)}{ incr retries log local0. "Reselecting with active members: [active_members [LB::server pool]] and retries: $retries" LB::reselect } else { no nodes available in pool, so respond back to client with BIG-IP generated content log local0. "Client: [IP::client_addr] lbfailed" HTTP::respond 200 content "blah" } }
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