Forum Discussion

sgnormo's avatar
sgnormo
Icon for Cirrus rankCirrus
Jul 05, 2022
Solved

Custom HTTPS Monitor

I have a VIP that is hosting two separate URL using HTTPS.  The VIP for both URL is using the same backend servers.  What i need is a monitor that sends a string to both URL to GET a file.  If the file is missing or the receive string is different that what the F5 is expecti then the F5 will mark that backend down just for that URL.

 

virtual server -  hosted URL    his.example.com   &  her.example.com

monitoring send string:   GET /f5.html HTTP/1.1\r\nHost: his.example.com\r\nConnection: Close\r\n\r\n

                                          GET /f5.html HTTP/1.1\r\nHost: her.example.com\r\nConnection: Close\r\n\r\n

receive string  "up"

The F5 sends a GET to each host and depending on the receive string will mark the backend down just for that URL.

  • Hi,

    why not just configuring two pools (pool_his, pool_her) with a pool specific monitor?

    Now have an iRule which differentiates between the hostnames:

    when HTTP_REQUEST {
        switch [string tolower [getfield [HTTP::host] : 1]] {
            his.example.com { pool pool_his }
            her.example.com { pool pool_her }
        }
    }

     

2 Replies

  • Hi,

    why not just configuring two pools (pool_his, pool_her) with a pool specific monitor?

    Now have an iRule which differentiates between the hostnames:

    when HTTP_REQUEST {
        switch [string tolower [getfield [HTTP::host] : 1]] {
            his.example.com { pool pool_his }
            her.example.com { pool pool_her }
        }
    }

     

    • sgnormo's avatar
      sgnormo
      Icon for Cirrus rankCirrus

      did not think of that, let me test that out.