Hi,
You need to create 3 load balancing pools.
1 pool that has a generic http monitor and is used for traffic processing.
1 pool with a monitor with a disabled string 1 and pool name pool_1 (this pool won't process traffic)
1 pool with a monitor with a disabled string 2 and pool name pool_2 (this pool won't process traffic)
Your irule will look like:
When HTTP_REQUEST {
if { [active_members pool_1] < 1 } {
HTTP::respond 302 Location "http://domain.com/maintenance_1.html"
} elseif { [active_members pool_2] < 1 } {
HTTP::respond 302 Location "http://domain.com/maintenance_1.html"
}
}
Cheers,
Kees