Forum Discussion

Yoseph_Shiferaw's avatar
Yoseph_Shiferaw
Icon for Nimbostratus rankNimbostratus
Nov 06, 2007

Running EAV from within an iRule

Hi:

 

 

I am trying to figure out how to run an EAV for mysql from within an iRule. I want to run the mysql checker and then make decisions based on whether the database server is responding properly or not. Any hints or pointers to reference material would be very welcome.

 

 

Thanks

3 Replies

  • Hello,

    You can't call an external script from an iRule. However, you could configure an EAV for the pool and then use LB::status (Click here), to check if the pool member is marked up:

    
    if {[LB::status pool  member  ] eq "up"}{
        pool member is marked up by monitor(s)
    }

    If you just want to send requests to a pool member that has been marked up, you wouldn't need a rule--just the EAV monitor and standard load balancing.

    Aaron
  • Hello guys.

     

     

     

    Thanks for the tip hoolio.

     

     

    The only thing I changed is "up" in lowcase. But you saved me a few hours seeking how to do it. =)

     

     

     

    Thanks
  • Hi esaito,

     

     

    Thanks for catching that. I updated the example to use lower case.

     

     

    Aaron