Forum Discussion
Yoseph_Shiferaw
Nimbostratus
Nov 06, 2007Running 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
- hoolio
Cirrostratus
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 - Eduardo_Saito_1
Nimbostratus
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 - hoolio
Cirrostratus
Hi esaito,
Thanks for catching that. I updated the example to use lower case.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
