Forum Discussion
Adding healthchecks to uris with /health or /ready
We are looking to put in some healthchecks for our websites other than straight tcp or http or https.
we would like to look at the url https://something.com/health or https://something.com/health
Can this be done? Is this done in the pool management of the F5?
is there any documentation on how to set these up?
Yes that is possible with a L7 HTTPS health monitor. You assign this to monitor to the pool. Do not forget to assign a correct server ssl profile (needed if the webserver does SNI for the TLS handshake).
https://my.f5.com/manage/s/article/K2167 article explains how to create it.
Send string could be: GET /health/index.html HTTP/1.1\r\nHost: something.com\r\nConnection: Close\r\n\r\n
Receive string: HTTP/1.[01] [23]0[0-6]- LanceLyons
Cirrus
Hi, So i am experimenting with this approach and have the following.
type: httpsparent: https
send string: GET /api/health/ready HTTP/1.1\r\nHost: ci-member.domain.com\r\nreceive sting: HTTP/1.[01] [23]0[0-6]
receive disable string: Unhealthy
It shows both nodes in pool using the healthcheck as defined above as unhealthy.
when I call the healthcheck for the site I get this
https://ci-member.domain.com/api/health/ready
"Unhealthy"
a couple of questions.
1. for sites with ssl termination on the webserver, I should use type https and parent https correct?
2. Can I use the receive string of "Healthy" and receive disable string of "Unhealthy"3. Can I pass in the host information that comes into the VIP down to the pool and into the send string so it was more generic like this
send string: GET /api/health/ready HTTP/1.1\r\nHost: [HTTP::host] \r\n
Otherwise I will need a healthcheck monitor for every app.
thanks in advance.
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