What is the correct send and receive strings syntax for health monitoring of multiple servers in a pool ?

Hi,

I am trying to configure our F5 LB to monitor multiple servers in a pool but having some issues. Can someone help. See below:

Send string GET /maximo/webclient/login/login.jsp HTTP/1.1\r\nHost: maximo.company.com\r\nConnection: Close\r\n\r\n

maximo.company.com - virtual ip pointing to the severs.

Receive string - Maximo

Should I replace the maximo.company.com with the actual server names ? How do I do that for multiple servers in same send string ?

Thanks.

Your send string should be fine as is. We need to find out what the servers are returning when you issue that GET command. Can you try running a curl from the BIG-IP and seeing what the servers return?

curl poolmemberip/maximo/webclient/login/login.jsp

Replace poolmemberip with whatever the address of your server is.

Thanks for the quick response. Below is the configs:

maximo_prod_vs - virtual server maximo_prod_pool 10.96.150.78:8105 10.96.150.78:8104 10.96.150.78:8103 10.96.150.78:8102 10.96.150.79:8104 10.96.150.79:8103 10.96.150.79:8102 10.96.150.79:8101

I did run the curl for curl -vk http://10.96.150.78:8102/maximo/webclient/login/login.jsp and below is the some of response:

Accept: / HTTP/1.1 200 OK

Is the monitor not marking any of the pool members up? The way it’s currently written, it’s going to look for the string “Maximo” anywhere within the server’s response. If it’s not marking any of the pool members up, then it’s not finding that string.

If you change the receive string to “200 OK”, that should mark the pool members as up. But the receive string really needs to be something indicative of the health of the server.

There is a string, Maximo in the response from the server but the F5 seems to still mark the servers down. If I replace the receive string with OK or Maximo|OK it works. Using 200 OK does not work.

The most important question that I need answer to is what is the most efficient way to monitor all the servers in the same pool considering that they all listening on different ports ? Do I need multiple monitors ? Can I use the dns name of the the VIP instead of real servers’ dns names in the monitor ?

Thanks

The monitor you apply to the pool will attempt to verify the health of each pool member on the port you specified for them. You shouldn’t need to use multiple monitors unless you are going to send different strings or expect different responses.

If you sending a monitor over port 80 a receive string of just 200 will work if the server is responding with a http 200 response. If you want to check multiple ports you could use multiple probes but each server will need to pass the health check for each of the probes! That may not work for you. If all the servers listen on port 80 and you can get the same content over port 80 that should work.

Does it mean that the BIGIP ignores the dns name in the send string and just use the nodes ip addresses and ports for the GET request ? Can you provide me with an example of a send and receive strings for our case using the following:

maximo.company.com in the monitor, that gooes a the VIP. Like this one:

GET /maximo/webclient/login/login.jsp HTTP/1.1\r\nHost: maximo.company.com\r\nConnection: Close\r\n\r\n

The string, Maximo is the same for each server in their response.

we use a version of this to check our servers, HEAD /Myserversstatus/health.asp HTTP/1.1\nHost: healthcheck.some.domain.org \nConnection: close\n\n

the servers need to accept requests from the nHost listed in the HEAD

Does that mean the server needs to be configured to respond to request from maximo.company.com ?

So will this below work for us:

Send string HEAD /maximo/webclient/login/login.jsp HTTP/1.1\r\nHost: healthcheck.maximo.company.com\r\nConnection: Close\r\n\r\n

Receive String Maximo

Yes.

The Host request-header field specifies the Internet host and port number of the resource being requested, as obtained from the original URI given by the user or referring resource (generally an HTTP URL,

as described in section 3.2.2). The Host field value MUST represent the naming authority of the origin server or gateway given by the original URL. This allows the origin server or gateway to differentiate between internally-ambiguous URLs, such as the root “/” URL of a server for multiple host names on a single IP address.

Host = “Host” “:” host [ “:” port ] ; Section 3.2.2

A “host” without any trailing port information implies the default port for the service requested (e.g., “80” for an HTTP URL). For example, a request on the origin server for http://www.w3.org/pub/WWW/ would properly include:

GET /pub/WWW/ HTTP/1.1 Host: www.w3.org

A client MUST include a Host header field in all HTTP/1.1 request messages . If the requested URI does not include an Internet host name for the service being requested, then the Host header field MUST be given with an empty value. An HTTP/1.1 proxy MUST ensure that any request message it forwards does contain an appropriate Host header field that identifies the service being requested by the proxy. All Internet-based HTTP/1.1 servers MUST respond with a 400 (Bad Request) status code to any HTTP/1.1 request message which lacks a Host header field.

I noticed you have an extra \r after your HTTP/1.1\r\nHost ? I’m not sure if that matters but we don’t have that in our working strings.

HTTP/1.1\nHost:

So In this - GET /pub/WWW/ HTTP/1.1 Host: www.w3.org

should the host name, www.w3.org be the real server’s dns name or the VIP that points to the load balanced servers ? like maximo.company.com or server.company.com ?

It should be for the content that the server is hosting. If the client accesses maximo.company.com, then that’s what the host string in your monitor should be.

it depends what the servers trust. This curl command with your servers IP should work if you send from the F5 CLI curl -v -k -G --header “host:maximo.company.com” http://10.x.x.x/maximo/webclient/login/login.jsp

a good response will look similar to this < HTTP/1.1 200 OK < content-length: 180 < content-type: text/html < date: Fri, 28 Dec 2012 18:52:04 GMT < last-modified: Fri, 28 Dec 2012 16:42:32 GMT < p3p: CP=“NON CUR OTPi OUR NOR UNI”

how does the nodes behind the BIGIP know to respond to the VIP dns name, maximo.company.com ? Does the nodes need to be configured to respond to the VIP dns name ? You know when a request comes into the BIGIP from a client, the BIGIP source NATs the clients IP and the server does not know the iP of the original client. The nodes only sees the BIGIPs selfIP. The Nodes do not communicate directly with the client.

The BIG-IP is acting on behalf of the client. The client makes a request to the BIG-IP, thinking it’s the actual server. The BIG-IP then requests the content from the backend server as if it’s the client.

Your server will need to be configured to respond to the FQDN in question.

Yes, that’s what I thought. Thanks.

Also, When BIGIP makes a request on behalf on the client, does it normally use the original VIP’s dns name or it uses the nodes’ dns names or ip addresses ?

The BIG-IP sends traffic to pool members or nodes by IP address. Traffic between the BIG-IP and the pool members happens over a brand new connection independent of the client connection to the virtual server.