Forum Discussion

FizzyBoy_29767's avatar
FizzyBoy_29767
Icon for Nimbostratus rankNimbostratus
Sep 12, 2011

Get Image File

Hi All

 

 

I have had quite a basic requirement. I want BIGIP to look for an image GIF file to monitor our web instances. I have setup this monitor to do the job which simply sends the GET request.

 

 

monitor http_get_logo {

 

defaults from http

 

send "GET /i/logo.gif\r\n"

 

}

 

 

This configuration worked happily on v9.x. We have recently upgraded the Infrastructure to v10.2. This weekend, one of our web site instances went down. BIGIP should realize it cannot pull this GIF file anymore and should mark the pool member down, but it did not happened. So, BIGIP keep sending the traffic to an unhealthy instance result it confusion to our web users.

 

 

I am trying to answer few questions, please help. Is there any change in behaviour in monitors in V10? I never configured “Receive String” in v9.X, do I must need to configure on v10.2? Do I still need \r\n in v10, is it causing the issue?

 

 

Any help will be greatly appreciated. Thanks.

 

FizzyBoy

 

V

 

7 Replies

  • Thanks.

     

     

    It use to work in v9.4.5 without the receieve string. Is it v10's requirement?

     

     

    Suggest what should be the receive string, 200 OK or something else? Cheers.

     

     

  • It use to work in v9.4.5 without the receieve string. Is it v10's requirement?

     

    it is requirement in both v9 and v10. wondering why it worked in v9.

     

     

    Suggest what should be the receive string, 200 OK or something else?

     

    200 OK is fine.

     

     

    cheer!
  • This is due to:

     

     

    sol10655: Change in Behavior: CR/LF characters appended to the HTTP monitor Send string

     

    http://support.f5.com/kb/en-us/solutions/public/10000/600/sol10655.html

     

     

    You can set the send string to:

     

     

    send "GET /i/logo.gif HTTP/1.0\r\n\r\n"

     

     

    A receive string isn't required. If you don't set one, any data will be considered a success. At a minimum, it's good to verify the pool member sent a 2xx or 3xx:

     

     

    recv "HTTP\.1(0|1) (2|3)"

     

     

    Aaron
  • Defined the receive string and it worked like a charm.

     

     

    Thanks nitass and hoolio for your kind help. Cheers.
  • Defined the receive string and it worked like a charm.

     

     

    Thanks nitass and hoolio for your kind help. Cheers.
  • Defined the receive string and it worked like a charm.

     

     

    Thanks nitass and hoolio for your kind help. Cheers.