Forum Discussion
Chad_Roberts_21
Nimbostratus
Aug 10, 2006Check pool status in an iRule
I am trying to write an iRule that will monitor the status of many devices before forwarding to one device. I'll try to skip the details unless it becomes necessary to explain, but is it possible to define multiple pools, each with their own custom monitor, and check in an iRule to ensure that all of them are up before forwarding to the default pool? I thought perhaps LB::status would come in to play here, but I'm not having much luck finding sample code that helps me understand how it works.
- Terje_Gravvold
Nimbostratus
I don't realy know what you are trying to do, but here is a simple code that would do a status check on members of a pool. - Terje_Gravvold
Nimbostratus
Hi Collin, - Chad_Roberts_21
Nimbostratus
Thanks to all for the responses. I believe I have accomplished what I was looking for with "active_members", since I can compare simply against whether there is at least 1 member up in a pool, and it doesn't need to be updated when nodes are added or removed from pools. - Deb_Allen_18Historic F5 AccountNo rule is required to generate "Node Down" traps.
- Chad_Roberts_21
Nimbostratus
I shouldn't admit this, but for some odd reason a thought occurred to me about this thread while I was sleeping last night. Yeah, yeah... I need some time off.
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