Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

ACE HTTP Probe with regex

ACE HTTP Probe with regex

Hi,

I'm trying to setup a HTTP probe with expected string rather then a code (config below). I do a GET for the page then a search for a string in the response however it's not working, as probe appears as failed.

I've tested the connection to the server by using telneting and then looking at the page displayed to make sure the string I want to match is in the response.

probe http HTTP-PROBE

port 43050

interval 30

passdetect interval 30

passdetect count 1

request method get url /action=help

open 43050

expect regex action=help

Q. Is there anything wrong with this configuration and what I'm trying to achive?

Thanks,

Pritesh

3 REPLIES

Re: ACE HTTP Probe with regex

Use "expect status" under probe config. expect regex doesnt work if expect status is not configured.

expect regex work flawlessly with static pages. It doesnt work all the time with dynamic pages.

Specially if "content-length" header is missing from Server response.

Hope it helps

Syed Iftekhar Ahmed

Community Member

Re: ACE HTTP Probe with regex

Thanks Syed, that solved the problem.

Community Member

ACE HTTP Probe with regex

Hi,

Can regex be done with this string?

ALL CHECKS OK

i get an error when configuring this string

908
Views
5
Helpful
3
Replies
CreatePlease to create content