Forum Discussion
Nina_Forsyth_67
Feb 03, 2006Historic F5 Account
Error on LB_FAILED rule
I came across this rule which is causing an error message. The syntax with the HTML doesn't look correct however I am not sure. The rule was accepted and loaded as expected.
[code
rule blah {
when LB_FAILED {
pool http_vip
log local0. "begin: pool [LB::server pool], active mbrs = [active_members [LB::server pool]]"
if { ( [LB::server pool] eq "http_vip" ) and ( [active_members http_vip] == 0 ) } {
HTTP::respond 200 content "
LB FAILED
"
}
}
}
Any help is appreciated.
- What error message are you receiving? You might need to have your HTML all on one line.
- Nina_Forsyth_67Historic F5 AccountIt appears that HTTP::response isn't allowed in LB_FAILED which is the cause of the error.
- bl0ndie_127134Historic F5 AccountThis is being fixed on the next release. For now, you can use the http profile 'fallback host'. You don't have the ability to send the response payload but it does send a 302 redirect.
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