Forum Discussion
iRule Pool member(s) offline or disabled
Hello,
thanks for the answer. But that's don't solve the problem. Funktion "active_members" can't differentiate to pool state offline or disabled.
I don't want to display just one maintenance message, but two different ones (depending on the pool status). I have no idea if that's even possible.
<If> {
Pool state -> offline -> Error Page with Helpdesk-Support infos
}
<else> {
Pool state -> disabled -> simply maintenance site
}
Thanks
Have not tested but might work with something like this
of course adjust names, members and messages
when HTTP_REQUEST {
if { [LB::status pool my_pool member 10.1.1.1 80] eq "down" &&
[LB::status pool my_pool member 10.1.1.2 80] eq "down" }{
HTTP::respond 200 content {
<html>
<head>
<title>Error Page</title>
</head>
<body>
whatever you want to say plus links
</body>
</html>
}
} elseif { [LB::status pool my_pool member 10.1.1.1 80] eq "session_disabled" &&
[LB::status pool my_pool member 10.1.1.2 80] eq "session_disabled" }{
HTTP::respond 200 content {
<html>
<head>
<title>Maintenance Page</title>
</head>
<body>
whatever you want to say
</body>
</html>
}
}
else {
pool my_pool
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com