Forum Discussion
Tim_W_72292
Nimbostratus
Oct 24, 2007Irule with Multiple HTTP checks
Hi All,
I am trying to write a rule that will do multiple check within the HTTP headers, is this possible? Here is what I was thinking:
if {[HTTP::host] equals and [HTTP::st...
hoolio
Cirrostratus
Oct 26, 2007A couple of suggestions:
If you have multiple services on the pool member being load balanced through the BIG-IP, it might actually be better to disable just the one service that is failing. Instead of using LB::down node 1.1.1.1, you could use 'LB::down pool member '. If the node is in multiple pools and you want to mark it down in all pools, you could use LB::down node 1.1.1.1 to mark it down in all pools.
You can make it slightly more efficient by not saving the command output to a variable:
This:
set n [IP::server_addr]
LB::down node $ncan be replaced with this:
LB::down node [IP::server_addr]Likewise, this:
set r [HTTP::status]
log local0. "[IP::client_addr] -> [IP::server_addr] for the login page generated a HTTP $r response"can be replaced with:
log local0. "[IP::client_addr] -> [IP::server_addr] for the login page generated a HTTP [HTTP::status] response"Aaron
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
