Forum Discussion
travis_stl_1128
Nimbostratus
Mar 07, 2013smart iRule that sends a log/trap when 2 members of a 4 member pool are down?
@etc-haslb-1:Active] ~ b pool | grep panhangui
POOL panhangui-prd-pool LB METHOD round robin MIN/CUR ACTIVE MEMBERS 0/4
+-> POOL MEMBER panhangui-prd-pool/5.9.162.184:63433 active,up ...
Marc_64553
Nimbostratus
Mar 19, 2013Assuming your virtural server as a default pool defined (IE is not relying on an iRule to define the pool):
when CLIENT_ACCPETED {
if { active_members [LB::server pool] <= 2 } {
log local0. "ALERT: pool '[LB::server pool]' has two or less active members".
}
}
It's then up to syslog or your monitoring infrastructure to alert on this log message.
Alternately look at HSL here https://devcentral.f5.com/wiki/iRules.HSL__send.ashx for more details on setting up high speed (remote) logging.
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