Forum Discussion
mlamutt_62697
Feb 17, 2012Nimbostratus
Display a maintenance page when a GTM pool member is disabled
Hi all,
I am trying to create an Irule that will display a maintenance page (or custom 404 for each LTM) when a GTM pool member is disabled.
Here is some background:
We are running 3 ltm/gtm combo units, where the GTMs are synced, but the LTMs are not. We have found that when we disable a GTM pool member to route traffic to the other 2 members, we are still getting a small set of users that are still hitting the disabled site. These requests are coming from sources that are using hardcoded LTM Virtual Server IPs. We do not want to force these users to a "live" datacenter, but we do want to display a custom page maintenance page. Is this possible? I started working on this and came up with this failed attempt:
when HTTP_REQUEST {
if { not {[active_members -list ] contain "GTM member Address" }} {
HTTP::respond 200 content "
"HTML text here"
log local0. " GTMPool member disabled"
}
}
Thanks,
Mike
- hooleylistCirrostratusCan you try this instead where 1.1.1.1 is the IP you want to look for?
- mlamutt_62697NimbostratusWhen I use "equals" I get the following error in the logs:
- mlamutt_62697NimbostratusFrom what I am reading it is not possible to make a direct query from an LTM irule to the. Is it possible to run a TMSH command in an Irule? If soO I could do something like this:
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects