Forum Discussion
Spike_Henning_8
Nimbostratus
Oct 31, 2005How to sniff node down
How can I get the LTM to notify me when it detects a node down? So far, the first I know about it is when both nodes are down so the pool is unavailable causing the F5 to redirect requests to an outag...
Colin_Walker_12
Nov 01, 2005Historic F5 Account
You're close...
The LB::status section would evaluate a little differently.
Exerpt from Click here - http://tech.f5.com/home/bigip-next/manuals/bigip9_2/bigip9_2config/BIG_IP9_2ConfigGuide-14-1.htmlwp1200312
iRule command
LB::status
LB::status node
LB::status pool member
Description
Returns the status of a node. Possible values are up, down, session_enabled, and session_disabled. If you supply no arguments, returns the status of the currently-selected node
So you'd have something like:
when LB_FAILED {
if { [LB::status pool member ] eq "down" } {
log "Server $ip $port down!"
}
}
-Colin
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