cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
474
Views
0
Helpful
1
Replies

Query on Probe configuration

nlkarthik
Level 1
Level 1

Hello All,

I have a probe config as below:

probe http healthcheck

  interval 5

  faildetect 1

  passdetect interval 2

  passdetect count 1

  request method get url /healthcheck.aspx

  expect status 200 200

  expect regex "Name = ASR"

The ASR health check page verifies the health of a given ASR server based on the ASR performance counters and returns a web page (HTML) formatted with one of the two following results:

GET /healthcheck.aspx

1) healthy ASR server returns code 200 + a page that contains "Name = ASR"

2) unhealthy ASR server returns code 200 + a page that contains diagnostic counter data (counts for database, launcher, and adapter faults)

So, the expectation is that the load balancer could use both the return code and the page content to determine whether a given ASR server is healthy (or not) and either keep it in the pool or remove it.

Can someone advice if this config is correct or how the config should be ?

Thanks,

Karthik

1 Reply 1

chrhiggi
Level 3
Level 3

Karthik-

  In theory, your configuration is correct for what you want to do, however, there are a few things you need to be aware of that can be issues -

1.) For expect regex to work, the server MUST set a content length field telling the ACE how much data will be recieved in the request. 

2.) As well, the string is a regex - so you might need to put .* before or after it depending if the expression is on a line of its own.

3.) 5 Seconds is too agressive of an interval - this type of query should be every 10-15 seconds at a minimum.

Regards,

Chris Higgins

Review Cisco Networking for a $25 gift card