Forum Discussion
Moinul_Rony
Altostratus
Dec 09, 2013Monitor tomcat availability using iRule
Hi,
We want to create a iRule or Monitor to check the tomcat/JSP availabilty on the application pool members and disable a pool member if JSP is not rendering properly or tomcat is down.
...
IheartF5_45022
Nacreous
Dec 09, 2013Of course!! Have you looked up the documentation for monitors on your version of LTM?
Best practice is to check the Receive String for some specific content (not just HTTP status code).
Here's a simple v10 HTTP/1.0 example we use in our Tomcat containers;-
monitor mn_bpweb_mode.jsp {
defaults from http
recv disable "transition"
recv "normal"
send "GET /platform/mode.jsp\r\n\r\n"
}We use that jsp file to take servers in/out of the pool - it gets deployed with the Tomcat packages.
Here's another example we use for another application just to show you a more complicated send string;-
monitor mn_mcms_author.mycms.com.au_http {
defaults from http
recv "Alive"
send "GET /libs/granite/core/content/login/clientlib/healthcheck.html?a=b HTTP/1.1\r\nHost: author.mycms.com.au\r\nConnection: close\r\n\r\n"
}- Moinul_RonyJan 14, 2014
Altostratus
Thanks for the prompt reply.. How do I go about taking the servers in/out of the pool? Can this be managed in such a way that it doesn't mark the whole pool offline ? I am trying to figure how we can relate this monitor to a irule to manage the affected nodes.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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