Forum Discussion
Jeff_Kessler_47
Nimbostratus
Jan 23, 2007Health Monitoring iRule for ASM 9.x
Hey All,
On ASM v9.x, in order for you to have a health monitor on the Virtual Server/IP, you have to have a default pool as a resource. This as you know is not good practice for ASM as you would just like to have several classes associated with the Virtual Server. Thus allowing all traffic to pass through the Application Security piece. My question is… Can you write a iRule to monitor all the pools associated with your classes within the Virtual Server? Basically, if all the pools in all the classes within the VS are up, then the Virtual Server would be marked as "green." If one of the pools within a class within your VS is down then the VS would be marked as down.
Any help would be appreciated.
Thanks,
JKessler
1 Reply
- hoolio
Cirrostratus
Hi Jeff,
You can use a default pool on a VIP with ASM. You can ensure that requests will never be sent directly to the pool by adding at least one HTTP class with no filters. This "catch all" class should be included last in the list of classes so it will have the lowest precedence. This approach would only allow you to mark the VIP up based on the state of a single pool.
If you didn't want to take this approach, I think you'd need to use iControl to mark the VIP down based on the state of multiple pools. I don't think there is any method for affecting the status of the VIP based on the status of one or more pools from a rule. You might consider contacting support to request this functionality be added if you're interested in it.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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