Forum Discussion
Kevin_Stewart
Apr 22, 2013Employee
You can use the members command to list all of the members of a pool, regardless of monitor status, and then show their status with the LB::status command. Here's an example:
when CLIENT_ACCEPTED {
foreach x [members -list local-pool] {
log local0. "$x = [LB::status pool local-pool member [lindex $x 0] [lindex $x 1]]"
}
}
One important thing to note is that a failed monitor and a forced down node will result in the same "down" status, while a disabled and enabled member will show as "session_disabled" and "up" respectively. To get more distinction between down and disabled, you have to query from the shell with TMSH.