irule: Members down, select pool and URI
I have an irule that we have used now for some time:
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1} {
snat automap
pool pool_sorry
}
}
This irule works fine, however what I now want to be able to do is sent HTTP requests to a pool / pool member and specific URI when the active_members is <1.
To clarify the new irule would look something like this (syntaxes obviously not correct, but just to get what I am trying to achieve across)
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1} {
snat automap
pool pool_sorry /page1.aspx
}
}
Any ideas would be greatly appreciated, I know I can do a simple HTTP::redirect but I am trying to avoid this.