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...
unRuleY_95363
Aug 03, 2005Historic F5 Account
The only thing I can think of at the moment is to define an array in RULE_INIT that maps how many nodes are in each pool. That might be a bit unmanageable though...
when RULE_INIT {
array set ::node_count {
pool_A 15
pool_B 20
pool_C 5
}
}
when LB_SELECTED {
set pool [LB::server pool]
if { ([active_members $pool] * 100 / $::node_count($pool)) < 10 } {
log "Pool $pool is has less than 10% active members!"
}
}
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