Forum Discussion
Maintenance page won't show
Hello,
I have an issue while setting an irule to show a maintenance page, here is the irule:
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 0 } {
HTTP::respond 503 content [ifile get "Maintenance"]}
}
I think the problem is coming from the multiple irules in my VS, I have 20 differents pools included in different irules.
The irule above is working where I have only 1 pool which is set by default and 1 irule.
The test I made is to disable 1 pool in one of my irules to show this "Maintenance" page but it didn't work, which is expected because the pool I disable was not the default pool.
So how do I make a global irule to show my maintenance page when any of my pool included in my irules is down ? Or do I have to modify every irules with pool redirection ?
Thank you.
ps: I have bigIP 14.1.0.2.
4 Replies
- Snl
Cirrostratus
try using priority in IRULE to execute this irule before rest of the Irules
when HTTP_REQUEST priority 10 { if { [active_members [LB::server pool]] < 0 } { HTTP::respond 503 content [ifile get "Maintenance"]} }- IT
Nimbostratus
I try this and nothing change.
Hi Oodrive IT,
You must change number to 1.
if { [active_members [LB::server pool]] < 1 }- IT
Nimbostratus
Hello,
It was copy/paste mistake because I tried :
if { [active_members [LB::server pool]] == 0 }I set :
if { [active_members [LB::server pool]] < 1 }didn't work
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