Forum Discussion
Chris_Miller
Jul 07, 2010Altostratus
Posted By hoolio on 07/07/2010 05:16 AM
Hi Alberto,
You can check the status of a pool using LB::status:
http://devcentral.f5.com/wiki/default.aspx/iRules/lb__status
However there isn't a way to change the monitor assigned to a pool from an iRule. If a pool member was already marked down, you could use HTTP::retry to send a new HTTP request. You might be able to specify the IP and port to send that request to using the node command. I'm not sure whether this would work if the node address had also been marked down though.
http://devcentral.f5.com/wiki/default.aspx/iRules/http__retry
http://devcentral.f5.com/wiki/default.aspx/iRules/node
Aaron
Hoolio - what's your take on using LB::status vs if {active_members pool x > 0}?