Forum Discussion
Custom http health check
I did a test in my lab to look for a string of text in the receive string "success" for a known page we use to health check servers. If the string is not present the monitor will fail the server. here is the request and response GET /serverhealth/health.asp HTTP/1.1 Host:healthcheck.my.domain.org Connection: close
HTTP/1.1 200 OK Cache-Control: private Content-Length: 129 Content-Type: text/html Expires: Fri, 24 Jul 2015 12:15:02 GMT Server: Microsoft-IIS/7.5 X-Powered-By: ASP.NET Date: Fri, 24 Jul 2015 12:15:02 GMT Connection: close
success
The monitor request was using GET /serverhealth/health.asp HTTP/1.1\nHost:healthcheck.my.domain.org \nConnection: close\n\n the receive string I used was the word success
If you have a word in your receive string that's not present when the script fails this same monitor could work for you
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
