Forum Discussion

IT's avatar
IT
Icon for Nimbostratus rankNimbostratus
Aug 22, 2019

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's avatar
    Snl
    Icon for Cirrostratus rankCirrostratus

    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's avatar
      IT
      Icon for Nimbostratus rankNimbostratus

      I try this and nothing change.

  • Hi Oodrive IT,

    You must change number to 1.

    if { [active_members [LB::server pool]] < 1 }
    • IT's avatar
      IT
      Icon for Nimbostratus rankNimbostratus

      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