One click deployment agent script description (Linux version amd64). For other versions of agent, please manually download and deploy
Currently, this is a one click deployment of agent that is only applicable to Linux version, and will be automatically downloaded by default agent-linux-amd64-v3.4.2-en.tar.gz(Other versions are described below), and automatic deployment starts
1、First create a folder wgcloud (other names are acceptable) on the target monitoring host, and then enter the wgcloud folder
2、Execute the following script, and don't forget to put the last http://localhost:9999 Replace with your own The actual IP and port of the server host (This is used to set the configuration item serverUrl of the agent)
The following script is used to deploy the agent of v3.4.2 (if the host cannot access the internet, see Section 5 below)

[root@VM-0-14-centos /]# mkdir wgcloud
[root@VM-0-14-centos /]# cd wgcloud
[root@VM-0-14-centos wgcloud]# wget --no-check-certificate https://www.wgstart.com/en/download/sh/installAgent-v3.4.2.sh; bash installAgent-v3.4.2.sh http://localhost:9999
--2022-11-19 07:35:27--  https://www.wgstart.com/download/sh/installAgent-v3.4.2.sh
Resolving www.wgstart.com (www.wgstart.com)... 173.242.119.21
Connecting to www.wgstart.com (www.wgstart.com)|173.242.119.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 537 [application/octet-stream]
Saving to: ‘installAgent-v3.4.2.sh’

100%[=====================================================================================================================================================>] 537         --.-K/s   in 0s      

2022-11-19 07:35:28 (70.7 MB/s) - ‘installAgent-v3.4.2.sh’ saved [537/537]

开始下载agent-linux-amd64-v3.4.2.tar.gz------
--2022-11-19 07:35:28--  https://www.wgstart.com/download/3.4.2/agent-linux-amd64-v3.4.2.tar.gz
Resolving www.wgstart.com (www.wgstart.com)... 173.242.119.21
Connecting to www.wgstart.com (www.wgstart.com)|173.242.119.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6237962 (5.9M) [application/octet-stream]
Saving to: ‘agent-linux-amd64-v3.4.2.tar.gz’

100%[=====================================================================================================================================================>] 6,237,962   14.9MB/s   in 0.4s   

2022-11-19 07:35:28 (14.9 MB/s) - ‘agent-linux-amd64-v3.4.2.tar.gz’ saved [6237962/6237962]

下载完成------
agent-linux-amd64-v3.4.2/
agent-linux-amd64-v3.4.2/README.txt
agent-linux-amd64-v3.4.2/stop.sh
agent-linux-amd64-v3.4.2/wgcloud-agent-release
agent-linux-amd64-v3.4.2/log/
agent-linux-amd64-v3.4.2/config/
agent-linux-amd64-v3.4.2/config/application.properties
agent-linux-amd64-v3.4.2/start.sh
修改config/application.properties的配置项serverUrl------
修改完成------
部署下载已完成,开始启动agent------
./wgcloud-agent-release

wgcloud-agent程序开始启动

3、The deployment is completed, and other monitoring hosts are deployed as above
If the communication key on the server side wgToken(The default value of the configuration item wgToken in server/config/application.yml has been modified. Remember to modify the communication key in the agent
wgToken(agent/config/application.yml ) The configuration item wgToken in is consistent with the server's wgToken
#The communication token should be consistent with the wgToken configured on the server side
wgToken=wgcloud
4、One click deployment agent script video explanation
5、If you want to deploy agent script with one click if you cannot access the external network due to intranet or LAN, you can do so as follows
Take agent-linux-amd64-v3.4.2-en.tar.gz Download and copy to server/logo
Take installAgent-v3.4.2.sh Download and copy to server/logo
Then edit installAgent-v3.4.2.sh to https://www.wgstart.com/en/download/3.4.2/ All changed to http://[serverIP:9999]/wgcloud/resources/
Then you can execute the intranet version of the one click deployment script on the monitored host, as follows

wget --no-check-certificate http://[server主机IP:9999]/wgcloud/resources/installAgent-v3.4.2.sh; bash installAgent-v3.4.2.sh http://[server主机IP:9999]