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