steve_d1
Mar 10, 2020Nimbostratus
iRule to check if pool member is unavailable.
I would like to create an iRule that checks if all pool members. If these are unavailable or all down it should send a response that the page is currently unavailable.
Following irule works perfectly when the pool members are DOWN:
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::respond 503 content "Service Temporarily Unavailable"
}}
But the response is not send when pool members are marked as unavailable, for example by a https monitor where the disable string has been received.
Is there a way how you can check if pool members are unavailable?