Forum Discussion
iRules for monitoring pool members
Here's the challenge that I have at the moment. I need to trigger a service re-select if a web server is no longer listening two ports. The configured health monitor for the pool at the moment is icmp. This is good for when the server goes offline but will not do anything if the application halts.
Does anyone have an iRule I can use to mark the pool member down and trigger a service re-select if the F5 can no longer send traffic to the application ports?
Thanks in advance,
rp
- hoolio
Cirrostratus
Hi RP,monitor http_8080 { defaults from http dest *:8080 recv "200 OK" send "GET / HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n" } monitor http_80 { defaults from http dest *:80 recv "200 OK" send "GET / HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n" }
- rpalacios_79340
Altostratus
Hello Aaron,Thank you for the prompt reply. The ports in question are 9122 and 8165, they are for a web service application. How can I modify the irules you provided to monitor these?
Thanks!
-rp
- hoolio
Cirrostratus
Hi RP, - rpalacios_79340
Altostratus
Hi Aaron,Understood.
How do I determine the send string and receive string? Is this through sniffing, packet capturing or http header lookup?
Thanks,
-rp
- hoolio
Cirrostratus
You could use a browser plugin like Fiddler or HttpFox for Firefox and make a request to the application. Or if it's a webservice, capturing a tcpdump would work. Try to find a request which tests the functionality of the service without doing something that is too computationally expensive for the applications. If you want help configuring the monitor strings once you have sample requests, post sanitized copies of the requests and responses. - rpalacios_79340
Altostratus
Hello Aaron,I have dowloaded httpfox and was able to capture the header info. I created a TCP and HTTP monitor using this info and added it to a member, the member was marked down soon after that. Can you confirm I'm looking at the right information?
BTW - We are running on version 9.4.6, however I am planning to upgraded the redundant pair to ver 10.x.
I'm attaching a word doc w/ some screenshots.
Thanks!
Recent Discussions
Related Content
* 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