Forum Discussion

Gajji's avatar
Gajji
Icon for Cirrostratus rankCirrostratus
May 18, 2021

How to create standard Custom http monitor

How to create standard Custom http monitor 

What should be the Send/Receive String should be given by application ?

  • Gajji's avatar
    Gajji
    Icon for Cirrostratus rankCirrostratus

    Yes I checked that and I applied moniter as well but didnt work

     

    Below what i need , what should be the send & Receive string?

    http://backend server ip:8580/xyz by calling this URL should get http response as 200.

  •  ,

    You can try below send string and test.

    GET /path HTTP/1.1\r\nHost: host\r\nConnection: Close\r\n\r\n

    Here in place of path and host, you need to put your actual application path and IP address of the backend server as given below. Under receive string mention simply 200.

    GET /xyz HTTP/1.1\r\nHost: 10.10.10.10\r\nConnection: Close\r\n\r\n

    Here, 10.10.10.10 is considered as backend server IP and /xyz is the application path.

    Also before configuring this, make sure the application path is reachable from F5. You can test it using CURL command. If it is reachable, above custom send string should work as expected.

    Hope it helps!

    • Gajji's avatar
      Gajji
      Icon for Cirrostratus rankCirrostratus

      Thanks for the Explanation - what to do when multiple backends are there?

       

      • Can I Simple but Host: Localhost?
  • Hi  , Putting localhost will not help you as it won't resolve the backend IP of server IP from F5. Instead of using localhost, you can use FQDN of the backend server. Just need to make sure that FQDN is resolving IP from F5. Once this is configured, same custom send string will be mapped to all the backend pool members.

  • Gajji's avatar
    Gajji
    Icon for Cirrostratus rankCirrostratus

    I just want to understand what localhost mean here?

     

    GET /xyz/xyz HTTP/1.1\r\nHost:localhost\r\nConnection: Close\r\n\r\n