Forum Discussion
shaggy
Nov 11, 2014Nimbostratus
You could insert a check after the switch statement similar to:
if { [active_members [LB::server pool]] == 0 } {
create data variables with HTML content to send to client
set httphost [string tolower [HTTP::host]]
set data " $httphost Sorry: The Site you are trying to reach is currently Unavailable. If you believe you are receiving this message in error, contact our service desk at XXXXX."
send string
HTTP::respond 200 content $data
This should check for active members in the current selected pool and remove the need to check each individual pool in each switch entry