Let me do a little digging around & see what I can find out.
In the meantime, a couple of observations:
jfroggatt:
For this test:
if {[LB::status pool $LBpool member $LBmember $LBport] eq "up"} {
you might consider using 'ne "down"' instead of 'eq "up"' if you ever want to be able to drain off connections or test the rest of the rule logic without a monitor applied. That way the status of DISABLED and UNCHECKED would pass the test.
wbenetti:
As documented in the wiki page (
Click here), the LB::status command didn't work as expected in 9.2.3 with this syntax:
if {[LB::status node $::BSIFNODE1 up] == 0} {
and we had to instead use the syntax as in the example above:
if {[LB::status...] ne "up"} {
Let me know if you've verified that the correct boolean is returned in all cases in 9.3.0, and I'll do some further testing & update the wiki if appropriate.
Also, I seem to recall difficulty in getting the "node" command to function properly without a port parameter, so you might want to try adding it to see if you get a more consistent result that way.
HTH, and I'll be circling back on this one later this week.
/deb