Use an efficient single-line command script to install Agent Client Collector on a machine that uses a Linux operating system. If a script is not connected to the instance or you want to use enhanced customization options, you might have to install Agent Client Collector manually.
始める前に
- Ensure that you have configured the Agent Client Collector web
server.
- Verify that your server's OS and version matches the list of supported OS
versions as described in Agent Client Collector installation.
- Ensure that the unzip program is installed on your Linux machine.
- Determine the resource limits for the agent to be configured in the
/usr/lib/systemd/system/acc.service file after
installation.
- Ensure that you have the
openssl and dgst (for RHEL/Centos/SUSE installation) packages available, to be used by the install script.
- Ensure that you have the
gpg package available for validation (for Ubuntu/Debian installation).
- When performing single-line installation on more than one agent, download the
agent package to your local machine. Place the package on your
ftp server, using an Ansible script. For details on mass
deployment of agents, see Incorporating the Agent Client Collector into a custom base image for mass deployment.
- In order for the Agent to retrieve the OS serial numbers and TCP connections
along with associated running processes, sudo access for “dmidecode” and “ss” is
required on Linux systems.
Role required: agent_client_collector_admin
手順
-
Retrieve MID Server websocket URL parameters.
-
Navigate to and select the relevant websocket endpoint.
-
Copy the value of the Endpoint URL field to be
used in the installation command.
-
Copy and edit the following command line, substituting your own information for
the command parameters.
ACC_API_KEY=<api_key>
ACC_MID=wss://<mid_ip>:<websocket_port>/ws/events bash -c "$(curl -L
https://<instance URL>/api/sn_agent/agents/install_agent)"
表 : 1. Command parameters
| Parameter |
Value |
| ACC_API_KEY |
The API key used to access the MID Server
websocket. If no ACC_API_KEY value is specified, you
will be asked to enter the API key value during
execution of the script. |
| ACC_MID |
The URL of the MID Server websocket. If you are specifying multiple MID Servers, enter a string separated by commas for each MID Server. |
- オプション:
If you need to create new check definitions to be included in the allow list
that indicates the checks enabled to run on the agent, disable the allow list by
adding ACC_ALLOW_LIST=0 to the single-line command
string.
注: This action compromises your system's security and is recommended only as
a temporary measure until you finish updating the allow list. After
completing the update, re-activate the allow list by removing
ACC_ALLOW_LIST=0 from the single-line command
string.
- オプション:
If the certificate validation process is too time consuming or if you are using
the agent for development purposes, you can bypass certificate validation by
adding ACC_VALIDATE_SIG=0 to the single-line command
string.
-
Run the single-line command (specified in step 2, above) on the server where the Agent Client Collector is installed.
- オプション:
Configure resource limits for the agent in the
/usr/lib/systemd/system/acc.service file, according to your
business needs.
The default values in the file are:
- CPUShares: 128
- CPUQuota: 10%
- MemoryLimit: 192M
- BlockIOWeight: 10
- LimitNICE: +15