For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Jeff_Bull_42197's avatar
Jeff_Bull_42197
Icon for Nimbostratus rankNimbostratus
Feb 20, 2015

New monitor looking for a character string is not working

Good morning, I created a new monitor on my LTM which makes an HTTP GET request and looks for a specific string.

 

Send String: GET /User/MobileSiteStart/List\r\n

 

Receive String: WAP

 

I use something similar in a 3rd party tool (Site 24x7) to tell whether the application running on the server is available for user requests. Unfortunately, the node in this case remains down. Am I missing a component someplace?

 

Thanks in advance!

 

3 Replies

  • Hi, It is a standard HTTP monitor?

     

    Try:

     

    GET /User/MobileSiteStart/List HTTP/1.0\r\n\r\n

     

    or

     

    GET /User/MobileSiteStart/List HTTP/1.1\r\nHost: www.hostname.com\r\nConnection: Close\r\n\r\n

     

    Hope this helps.

     

  • THi's avatar
    THi
    Icon for Nimbostratus rankNimbostratus

    To clarify why to use this particular syntax:

     

    RFC 2616 (Hypertext Transfer Protocol -- HTTP/1.1) states:

     

    " A client MUST include a Host header field in all HTTP/1.1 request messages . If the requested URI does not include an Internet host name for the service being requested, then the Host header field MUST be given with an empty value.

     

    ...

     

    All Internet-based HTTP/1.1 servers MUST respond with a 400 (Bad Request) status code to any HTTP/1.1 request message which lacks a Host header field."

     

    I have seen that omitting the "Host" header will usually result service "down" and so prefer using the format cjunior proposes. Note the double crlf sequence in the end and also the Connection: Close -header. The exact syntax is dependent upon sw version used. See more on this at: SOL2167: Constructing HTTP requests for use with the HTTP or HTTPS application health monitor