Configure the websocket server on MID Servers to enable
connections from agents to the MID Server. You can configure only one
websocket server per MID Server.
Before you begin
Ensure that you download and install curl (or similar software) on your MID ServerWindows machine.
Role required: agent_client_collector_admin
Procedure
Navigate to All > MID Server > Servers.
Select the relevant MID Server name.
In the Related Links section, click Setup ACC
Listener.
The Agent Client Collector Setup dialog box appears.
Enter the MID web server port (8800) in the displayed field.
Note:
You can change the default port, 8800, as needed.
To invoke secure TLS configuration, configure the following in the acc.yml file: wss://<mid_ip>:<websocket_port>/ws/events
To invoke TLS 1.3 support on the MID Web Server, set the following parameter in the wrapper-override.conf file on the MID Server: -Djdk.tls.server.protocols="TLSv1.3"
In a Linux environment, port numbers under 1024 can be used only with superuser privileges.
Click OK.
A confirmation message with the URL for the agent configuration file appears.
The web server and websocket extension are configured for the MID Server. To verify the configuration, navigate to the following menu options:
Agent Client Collector > MID Web Server. When editing the fields on the resulting form, you must restart the MID web server extension to save your changes.
Agent Client Collector > Websocket Endpoint
Verify the validity of the websocket, using curl:
Enter the following command into a cmd or terminal window:
curl -Lk -H "Authorization: Key <API_KEY>"
https://<mid_server_address>:<port>/api/mid/mon
Verify that you receive a valid JSON response (and not an error
message), such as the following: