Pool or Node Monitoring and redirection

Hi,

I have F5 ASM and need somehow to monitor pool or node and if status of one or another is “down” then redirect traffic to other pool and make http:redirect.

I didnt find anything in forum search…

Itried to do something like this:

when HTTP_REQUEST {

if { [active_members My_pool1] < 1 } {

pool My_pool2

HTTPS::redirect “https://abc.com/one”

But this is not working… :confused: I asked F5 support do I need LTM license in order to use this commands (active_members, LB:seerver, etc) but they could not tell me that..

Can someone suggest what can be done in order to monitor pool/node and then take action based on monitor result ?

thank you in advance

Vytautas.

Hi Vytautas,

Give this a shot:

when LB_FAILED {
    HTTP::redirect "https://abc.com/one"
}

You probably don’t want to select a pool then send a redirect to client. I would do one or the other. I can’t say for sure that this will work on an ASM standalone, but I’d lean towards yes. Give it a shot.

-George