Forum Discussion

El-Guapo_29797's avatar
El-Guapo_29797
Icon for Nimbostratus rankNimbostratus
Sep 20, 2013

Health Monitor via Hello.aspx

I created a monitor with following properties. Is this correct? ["type: http"; "Parent Monitor: http"; "send string: Get /hello.aspx\r\n"; "receiving string: hi"]

 

I think its working but admin doesnt agree. is this wrong? Also, instead of receiving string "hi", could it just check the name & not content.. and if the name changes for example to hello1.aspx for F5 to remove that server from LBS group? Thank you (this is what I used to do on Cisco CSS via Head). Thanks so much.

 

11 Replies

  • Why doesn't the admin think it works? If hello.aspx is no longer served, you'll get a 404 error rather than the 'hi' so that part should work.

     

    I'd certainly suggest you make the response something a bit more complex, I can imagine 'hi' might match other things (like t'hi'ngs) unintentionally.

     

    Also, you could tidy up and improve the request string, see here: http://support.f5.com/kb/en-us/solutions/public/2000/100/sol2167.html

     

  • I forgot to ask about the 2nd part of my question. can someone tell me how monitor via http 1.0 or 1.1 via HEAD and not GET... So that if name of file changes, the F5 would take server offline? Would this work:

     

    HEAD /hello.aspx HTTP/1.0\r\nConnection: Close\r\n\r\n

     

  • I'm not sure the method matters here. If hello.aspx is no longer available, the member will be marked down.

     

  • the admin just modified one of pool members purposely by modifying hello.aspx as hello.xyz and the node still shows green and available. have any of you done a monitor that checks a certain webpage like index.html or anything so that when index.html is not avaible the pool would remove the server?

     

  • HELLO.ASPX WORKS. But to remove a node from pool, since this is a GET and not HEAD, the administrator of web server must change the "Receive String" from "hi" to something else... He can't change the name, the way, I created this simple monitor. For those who are new to F5 like myself (I do know Cisco LBS well)... By default, F5 LTM uses HTTP 0.9. Which means the "send string" is like "GET /hello.aspx\r\n" & receive string is "hi" for my example (without the quotes). I would like to test this via HTTP 1.0 and HTTP 1.1. If I find the answer, I will post here. Again I truly appreciate the above person who tried to help (What Lies Beneath). he was correct all along but we were testing this wrong. If anyone knows how to modify this to use HTTP 1.1, I would truly appreciate their input.

     

    • What_Lies_Bene1's avatar
      What_Lies_Bene1
      Icon for Cirrostratus rankCirrostratus
      Glad it's working and you're welcome. Just change this: HTTP/1.0\r\n to this: HTTP/1.1\r\n in your request string.
  • thank you again .. can I ask you one more question.. where do I insert the hello.aspx in there? Is it like HTTP/1.0 hello.aspx\r\n or HTTP/1.0hello.aspx\r\n or something?

     

  • This I would have thought, just change the hostname to whatever the server expects:

    GET /hello.aspx HTTP/1.1\r\nHost: host.domain.com\r\n\r\n

  • Thank you again so much... what you added works well.. I also tested below HEAD and it works.. I hope both will help anyone who wants to do this type of monitor. For those who are very new to F5.. Go to Monitor & assign a name & select http for type & parents will be http as well.. paste below in send string for HEAD or use above for GET:

     

    HEAD /hello.aspx HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n

     

    Just a note: you need a send string to match the content of hello.aspx webpage for GET.