Forum Discussion

kgangi_50732's avatar
kgangi_50732
Icon for Nimbostratus rankNimbostratus
Sep 21, 2010

Simple http health monitor question

Good afternoon,

 

 

I'm trying to get a simple http health monitor working as it seems to be causing me trouble because of quotes that are required in the receive string so that we can be sure our site is up. The code is running on 9.4.6 HF2.

 

 

monitor http_website {

 

defaults from http

 

timeout 10

 

recv "<\div id=\"monitoring\">\<\/div\>"

 

}

 

 

(Ignore the \ before the div, between the > and < and before the backslash)

 

 

The Send String is just a simple "GET /". I've done this before but in our next release of our website the devs added a specific field that I can monitor because I used to monitor another part of the home page but when that changed it broken the site...not good. From the UI, when I remove the backslashes then it states that you need to escape the quotes. It works fine when I monitor another part of the site that doesn't NOT have quotes in the recv string.

 

 

Any help would be greatly appreciated,

 

 

Thank you

 

No RepliesBe the first to reply