One click deployment of agent script instructions (Linux version)
If it does not meet your needs, you can also refer to how to install the agent separately on the monitored host , select one of them
This is currently only applicable to the Linux version of the agent one-click deployment. By default, it will automatically download the specified agent installation package, and automatically deploy and start the program.
1、First, create a folder wgcloud on the target monitoring host (other names are also acceptable)
Then enter the wgcloud folder. It is recommended to deploy the agent to a unified directory of all controlled hosts for easy management in the future.
2、Then execute the following command to install the agent
The following instructions are to deploy agent-linux-amd64-v3.5.8-en.tar.gz on the controlled host (if the host cannot access the external network, skip to the 3th item below)
Replace http://localhost:9999 in the command with your own server host IP and port . This is used to set the agent configuration item serverUrl
The wgcloud in the command is used to set the agent's communication key wgToken value, which is usually kept by default .
The default value of the configuration item wgToken has been modified, so replace wgcloud with your actual wgToken value . Server and agent communication key description
Replace 192.168.1.9 in the command with your own agent controlled host IP . This is used to set the agent configuration item bindIp , which is the agent host IP.
The instructions are as follows (mainly use the curl tool that comes with Linux to download and install, so the monitoring host needs to support curl )
Deploy agent completed
(2) If you want to deploy other agent installation packages
Just replace agent-linux-amd64-v3.5.8-en.tar.gz in the command with the name of other agent installation packages, for example, replace it with agent-linux-arm64-v3.5.8-en.tar.gz, and view the agent installation package name list
3. If you are using an intranet or LAN and cannot access the website to download the installation package, you can also use the one-click deployment agent script. See the instructions