Product Documentation

Monitoring TCP-based Applications

Oct 20, 2015

The NetScaler appliance has two built-in monitors that monitor TCP-based applications: tcp-default and ping-default. When you create a service, the appropriate default monitor is bound to it automatically, so that the service can be used immediately if it is UP. The tcp-default monitor is bound to all TCP services; the ping-default monitor is bound to all non-TCP services.

You cannot delete or modify default monitors. When you bind any other monitor to a TCP service, the default monitor is unbound from the service. The following table lists the monitor types, and the parameters and monitoring processes associated with each type.

Monitor type

Specific parameters

Process

tcp

Not applicable

The NetScaler appliance establishes a 3-way handshake with the monitor destination, and then closes the connection.

If the appliance observes TCP traffic to the destination, it does not send TCP monitoring requests. This occurs if LRTM is disabled. By default, LRTM is disabled on this monitor.

http

httprequest [“HEAD /”] - HTTP request that is sent to the service.

respcode [200] - A set of HTTP response codes are expected from the service.

The NetScaler appliance establishes a 3-way handshake with the monitor destination.

After the connection is established, the appliance sends HTTP requests, and then compares the response code with the configured set of response codes.

tcp-ecv

send [""] - is the data that is sent to the service. The maximum permissible length of the string is 512 K bytes.

recv [""] - expected response from the service. The maximum permissible length of the string is 128 K bytes.

The NetScaler appliance establishes a 3-way handshake with the monitor destination.

When the connection is established, the appliance uses the send parameter to send specific data to the service and expects a specific response through the receive parameter.

http-ecv

send [""] - HTTP data that is sent to the service

recv [""] - the expected HTTP response data from the service

The NetScaler appliance establishes a 3-way handshake with the monitor destination.

When the connection is established, the appliance uses the send parameter to send the HTTP data to the service and expects the HTTP response that the receive parameter specifies. (HTTP body part without including HTTP headers). Empty response data matches any response. Expected data may be anywhere in the first 24K bytes of the HTTP body of the response.

ping

Not Applicable

The NetScaler appliance sends an ICMP echo request to the destination of the monitor and expects an ICMP echo response.

To configure built-in monitors for TCP-based applications, see Configuring Monitors in a Load Balancing Setup.