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.
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.