Forum Discussion

uni's avatar
uni
Icon for Altostratus rankAltostratus
Nov 03, 2006

Different actions for different monitors, one pool

I have been asked if I can perform different actions depending on the result of different monitors. Specifically, if an ICMP monitor fails, reject the request, but if ICMP passes but an HTTP monitor fails, issue an HTTP::respond.

 

 

My first thought was to have a pool with the HTTP monitor, and a LB_FAILED event which LB::reselects an equivalent pool with the ICMP monitor, which either rejects or HTTP::responds. It might work, but it seems complicated.

 

 

Does anyone have a better suggestion? I have a suspicion I'm asking a dumb question, but my excuse is it's Friday afternoon.

1 Reply

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    There isn't currently a way to have an iRule directly interact with a pool monitor. Your proposed solution sounds like it might be worth investigating, though.

     

     

    If you have the monitors desired set up on different pools, and then get the logic right in the iRules to pass traffic from one pool to another based on the pool status...you might be able to achieve what you're looking for without too much trouble.

     

     

    Colin