You create a service monitor to define health check parameters for a particular type of network traffic. When you associate a service monitor with a pool, the pool members are monitored according to the service monitor parameters

About this task


  1. Log in to the vSphere Web Client.
  2. Click Networking & Security and then click NSX Edges.
  3. Double-click an NSX Edge.
  4. Click Manage and then click the Load Balancer tab.
  5. In the left navigation panel, click Service Monitoring.
  6. Click the Add (Add icon.) icon.
  7. Enter a name for the service monitor.
  8. Enter the interval in seconds at which a server is to be pinged.
  9. Enter the number of times the server must be pinged before it is declared down.
  10. Enter the maximum time in seconds within which a response from the server must be received.
  11. Select the way in which to send the health check request to the server from the drop-down menu.
  12. For HTTP and HTTPS traffic, perform the steps below.
    1. Enter the string that the monitor expects to match in the status line of HTTP response in the Expected section.

      For example, 200,301,302,401.

    2. Select the method to detect server status from the drop-down menu.
    3. Enter the URL to be used in the sample request.
    4. If you select the POST method, enter the data to be sent.
  13. Enter the string to be matched in the response content in the Receive section.

    If the string in the Expected section is not matched, the monitor does not try to match the Receive content.

  14. Enter advanced monitor parameters as key=value pairs in the Extension section.

    A sample extension, warning=10, indicates that if a server does not respond within 10 seconds, the status is set as warning.

    All extension items should be separated with a carriage return character.


    Refer to the table for supported protocol extensions.

    Table 1. Extensions for TCP Protocol

    Monitor Extension



    Can use \n, \r, \t, or \ in send or quit string. Must come before send or quit option. Default: nothing added to send, \r\n added to end of quit.


    All expect strings need to occur in server response. Default is any.


    String to send to server to initiate a clean close of the connection.


    Accept TCP refusals with states ok, warn, or criti Default is crit.


    Accept expected string mismatches with states ok, warn, or crit. Default is warn.


    Hide output from TCP socket.


    Close connection once more than the specified number of bytes are received.


    Seconds to wait between sending string and polling for response.


    Minimum number of days a certificate has to be valid. The first value is #days for warning and the second value is critical (if not specified - 0).


    Force SSL handshake using sslv3.

    sslv3 and tlsv1 are disabled in the health check option by default.


    Force SSL handshake using tls 1.0.


    Force SSL handshake using tls 1.1.


    Force SSL handshake using tls 1.2.


    Display ciphers used in HTTPS health check.


    Response time in seconds to result in warning status.


    Response time in seconds to result in critical status.

    Table 2. Extensions for HTTP/HTTPS Protocol

    Monitor Extension



    Do not wait for document body: stop reading after headers. Note that this still does an HTTP GET or POST, not a HEAD.


    Warn if document is more than SECONDS old. The number can also be in the form 10m for minutes, 10h for hours, or 10d for days.


    Specify Content-Type header media type in POST calls.


    Allow regex to span newlines (must precede -r or -R).

    regex=STRING or ereg=STRING

    Search page for regex STRING.


    Search page for case-insensitive regex STRING.


    Return CRITICAL if found, OK if not.


    Username:password on proxy-servers with basic authentication.


    String to be sent in HTTP header as User Agent.


    Any other tags to be sent in HTTP header. Use multiple times for additional headers.


    How to handle redirected pages. sticky is like follow but stick to the specified IP address. stickyport also ensures port stays the same.


    Minimum page size required (bytes) : Maximum page size required (bytes).


    Response time in seconds to result in warning status.


    Response time in seconds to result in critical status.

    Table 3. Extensions for HTTPS Protocol

    Monitor Extension



    Enable SSL/TLS hostname extension support (SNI).


    Minimum number of days a certificate has to be valid. Port defaults to 443. When this option is used the URL is not checked.


    Username:password on sites with basic authentication.

  15. Click OK.

What to do next

Associate a service monitor with a pool.