cancel
Showing results for 
Search instead for 
Did you mean: 

Custom HTTPS Monitor

sgnormo
Altocumulus
Altocumulus

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.

1 ACCEPTED SOLUTION

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 }
    }
}

 

View solution in original post

2 REPLIES 2

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 }
    }
}

 

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