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; bash http://localhost:9999
--2022-11-19 07:35:27--
Resolving (
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 537 [application/octet-stream]
Saving to: ‘’

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

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

--2022-11-19 07:35:28--
Resolving (
Connecting to (||: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]



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
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 Download and copy to server/logo
Then edit to 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/; bash http://[server主机IP:9999]