For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Heiko_Engemann_'s avatar
Heiko_Engemann_
Icon for Nimbostratus rankNimbostratus
Sep 22, 2008

message when all poolmembers are offline, dynamically

Hello,

 

 

i have an irule that is displayed when all the poolmembers are offline,

 

Is there a variable that inserts the poolname when it is assigned to an vserver?

 

In this example I would like to replace test_www whith an variable for the pool:

 

 

if {[active_members test_www] == 0} {

 

 

 

 

when RULE_INIT {

 

set sorry ">test

This website is currently offline. Please try again later."

 

}

 

when HTTP_REQUEST {

 

if {[active_members test_www] == 0} {

 

HTTP::respond 200 content $::sorry

 

}

 

}

 

 

hope you know what I mean.

 

 

 

greetings

 

1 Reply

  • Check out the LB::server command

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/LB__server.html

     

    Click here

     

     

     

    -Joe