Forum Discussion

atultilekar_718's avatar
atultilekar_718
Icon for Nimbostratus rankNimbostratus
Feb 12, 2016

Health Monitor Required

I need to prepare the health monitor which will fulfill me below requirement.Please suggest.If u write & share the irule will be helpful.

 

type HTTP port tcp/80 http method: GET http url: /ldprobe.htm expect status code in responses: range from 200 to 999

 

3 Replies

  • Hello Friend,

    You can configure a simple health monitor using GET method.

    1. Navigate to Local Traffic  ››  Monitors  ››  New Monitor.
    2. Enter Name and Type HTTP
    3. Send String - GET /ldprobe.htm HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n
    4. Receive String - 200 OK
    4. Finish
    

    Hope this helps.

    btw, Is there any specific requirement for iRule to probe health monitor?

    -Jinshu

  • Hi

    as the previos poster have already recommended, you should use a LTM Monitor to test the health of your application.

    To allow status codes between 200 and 999 you have to define the Receive String using regular expression...

    Send String     : GET /ldprobe.htm HTTP/1.1\r\nHost: www.insert-your-domain-name.tld\r\nConnection: Close\r\n\r\n
    Receive String  : HTTP/1.(0|1) [2-9][0-9][0-9]
    

    Cheers, Kai

  • As i mentioned earler the 'Receive String - 200 OK' would be fine for you as per your curl output.

     

    -Jinshu