cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1281
Views
0
Helpful
3
Replies

CSS healthcheck URI

salmodov
Level 1
Level 1

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

3 Replies 3

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

http://www.cisco.com/en/US/partner/products/hw/contnetw/ps792/products_tech_note09186a00801e1dfb.shtml

Syed Iftekhar Ahmed

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

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

Review Cisco Networking for a $25 gift card