Forum Discussion

Luca_55898's avatar
Luca_55898
Icon for Nimbostratus rankNimbostratus
Aug 11, 2011

HTTP Monitor

Hi,

 

 

I have a HTTP monitor configured to check a webpage of a node. The config is this:

 

 

Send String: GET /heartbeat.html \r\n

 

Reture String: SUCCESS

 

 

I was doing some testing and on the webserver we changed the page to display FAIL instead of SUCCESS. But the F5 did not mark the node as down.

 

Changing the webserver to display fail made the F5 mark the node down.

 

 

So why would it mark the node down when it sees 'fail' but not 'FAIL'

 

 

Also, if i just want the return string to be a 200 OK, how can i configure that?

 

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    Luca

     

     

    I didn't think monitor receive strings were case-sensitive so I double checked and I found this doc on askf5, which applies to all LTM versions:

     

     

    http://support.f5.com/kb/en-us/solutions/public/12000/300/sol12376.html?sr=15973326

     

     

    I would probably want to take a look at curl (curl -v http://x.x.x.x/heartbeat.html, for example) to see what was being returned and try and configure a monitor around this. Or fiddler / httpfox if you want to use a GUI.

     

     

    Also, a successful connection to a page should always return a 200 OK (that's what I've always thought anyway).

     

     

    Curl Example

     

    * About to connect() to x.x.x.x port 80

     

    * Trying x.x.x.x... connected

     

    * Connected to x.x.x.x (x.x.x.x.) port 80

     

    > GET / HTTP/1.1

     

    > User-Agent: curl/7.15.3 (i686-redhat-linux-gnu) libcurl/7.15.3 OpenSSL/0.9.7l zlib/1.1.4

     

    > Host: x.x.x.x

     

    > Accept: */*

     

    < HTTP/1.1 200 OK

     

    < Date: Thu, 11 Aug 2011 08:58:22 GMT

     

     

    N