Forum Discussion
LTM hosted maintenance page
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
set sorry "
Page Unavailable
This page is currently unavailable due to scheduled maintenance. Expected outage is between 12:00am and 1:15am (US CDT). Please check back soon. We apologize for any inconvenience.
"}
{ HTTP::respond 200 content $::sorry }
}
Currently the virtual server is down on port 80, since all the nodes are failing. However, I'm unable to bring up this content via the iRule. I'm sure that it's something obvious, but I'm at a loss. Any thoughts?
LTM version 10.2.0, HF2.
Thanks in advance.
Joe
- Tory_90586NimbostratusTry this
- Joe_Erchul_4263NimbostratusThanks, Tory. I tried it, but no luck. I'm going to throw the iRule onto another VIP to see if it behaves any differently. I wouldn't expect it to, but you never know. :-)
- Michael_YatesNimbostratusIf you are trying to get the LTM to generate the page, try this:
when HTTP_REQUEST { Check and verify that there are Pool Members Available to server the request if { [active_members [LB::server pool]] < 1 } { If there are no members available, generate HTML Maintenance Page HTTP::respond 200 content "Site unavailable System Maintenance NOTICE: This site is under maintenance. " } }
- Joe_Erchul_4263NimbostratusMichael, that worked very well. Thanks!
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