Forum Discussion
Bret_McGinnis_1
Nimbostratus
Aug 02, 2005Number of defined nodes in a pool
Is there a way in irules to determine the number of defined nodes in a pool. I'm trying to automate syslog notification when a pool is getting low on nodes. The number of active node is good but I ne...
Deb_Allen_18
Dec 12, 2006Historic F5 Account
You would create a new iRule using the code above provided by unRuleY, modifying the names of the pools & of servers in each to match your situation.
If all you want is a log message when you have less than 12 servers in a specific pool, you can simplify the code to:
when LB_SELECTED {
if { [active_members SEARCH_NODES] < 12 } {
log local0. "Pool SEARCH_NODES has less than 12 active members!"
}
}
HTH
/deb
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