Create/Modify/Remove a service monitor

 
A service monitor allows you to monitor the health of a specific type of traffic in which you define. There are three types you can define: HTTP, HTTPS, TCP, ICMP, or UDP. You then link this service monitor to a load balancer pool and all of the members of that pool are monitored based on the type of service monitor definitions you provided.
 

Create a Service Monitor

 
Step 1. Under NSX Edges Double Click the Edge device you would like to add a service monitor on.
 
1
 
Step 2. Under Load Balancer -> Service Monitoring Click the + sign.
 
2
 
Step 3. Define the following:
 
Name: Label for the Service Monitor
 
Interval: The interval for which the server is pinged
 
Timeout: The maximum time (seconds) that a server response must be received
 
Max Retries: Number of pings before server is marked down
 
Type The type of traffic to send the health request (HTTP, HTTPS, TCP, ICMP, or UDP). If you select HTTP or HTTPS you will have to define Expected, Method, and URL below.
 
Expected: Defined as the string that the monitor expects to match in the status line of HTTP or HTTPS response. IE. HTTP/1.1
 
Method: Method to detect the server status: GET, OPTIONS, POST If post is selected, you will need to specify the data to be sent.
 
URL: URL for the request
 
Send: Data to be sent
 
Receive: Specify the string to be matched in the response. Note: If expect is not matched, the service monitor doesn’t attempt to match the Recieve
 
Extension: Optionally, you can specify advanced monitor parameters as “key=value” pairs. The extension items should be separated with a carriage return. The pubs documentation references the example:
 

<extension>delay=2
critical=3
escape</extension>

 
The documentation also shows all of the different types of extensions that are supported base on the protocol.
 
3
 
4
 
5
 
Step 4. Hit OK
 
6
 

Modify a Service Monitor

 
Step 1. Select the Service Monitor you would like to modify and click the Pencil icon.
 
7
 
Step 2. Change the values that you would like to modify, then click OK.
 
8
 

Delete a Service Monitor

 
Step 7. Select the Service Monitor you would like to modify and click the X icon.
 
9
 
Step 8. Click Yes to confirm the deletion of the Service Monitor.
 
10
 
Once this is complete, you need to associate the Service Monitor with a pool via the steps here.
 
For more information, please see VMware’s documentation on Creating a Service Monitor.

Leave A Comment

Your email address will not be published. Required fields are marked (required):

Back to Top