Forum Discussion
Sorin_Rusnac_86
Nimbostratus
Apr 07, 2008custom http monitor
Hi
I am hoping somebody can help me in this fourm on this issue.
I am trying to setup a custom HTTP monitor that will send an email with a node is down. So if the HTTP monitor is ...
hoolio
Cirrostratus
Mar 11, 2009Does the pool member respond with a 200 to a normal monitor request? Does it respond with a 200 when it sends the service unavailable message? The service unavailable message is typically sent with a 503 status code. If your app uses a 200 response for service unavailable, you could configure one monitor that makes a request and looks for "200 OK" in the response and a second "reverse" monitor which marks the pool member up if the response does not contain "service unavailable":
monitor reverse_monitor {
defaults from http
reverse
recv "service unavailable"
send "GET /monitor_page.html HTTP/1.1\r\nHost: \r\nConnection: Close\r\n"
}
monitor reverse_monitor {
defaults from http
recv "200 OK"
send "GET /monitor_page.html HTTP/1.1\r\nHost: \r\nConnection: Close\r\n"
}
If the app responds with a 503 status for service unavailable you can just use a single monitor which sends a monitor request and expects a 200 OK response back in order to mark the pool member up.
Aaron
Aaron
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
