04-24-2007 07:50 AM
I need assistance with healthcheck page.
The URI is /HealthCheck but i need to check for String server OK and not the HTTP header.
Has any one set this up and is it possible?
Thanks
Steve
04-24-2007 09:22 AM
The "ap-kal-httpcheck " script connects to a webserver on port 80 by default.It performs a GET on the specified page. If the WebString is returned (and is within first 10K response), the service stays up. If anything fails, the service is marked down.
The syntax for this KAL is:
ap-kal-httpcheck \'WebSiteIP WebPage WebString [Port]\'
for e.g.
service web1
ip add 10.10.10.1
keepalive frequency 10
Keepalive type script ap-kal-httpcheck ?10.10.10.1 /index.html teststring?
active
More details available at
Syed Iftekhar Ahmed
04-24-2007 10:39 AM
This is what I came up with would be the difference in our configs here? would this not do what i need it to do or is your option better?
service My_test
protocol tcp
keepalive type http
keepalive method get
ip address 172.19.40.2
port 8013
keepalive port 8013
keepalive uri "/HEALTHCHECK"
active
Thanks
Steve
04-24-2007 10:46 AM
I thought you wanted to look for a particular string in the server response. The example I posted will connect to webserver and will look for a string in the response.
In you config CSS will send a GET request to server and calculate a HASH of the healthcheck page. If the content on the page changes then the newly calculated HASH will be different from original HASH and CSS will mark the service down.
If you use "keepalive method Head" then CSS will only look for 200 ok response server.
Syed Iftekhar Ahmed
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide