Internal or local network, unable to access external network. You can also use one click deployment agent script if you want

1、Download and copy the installation package of the agent that needs to be deployed to the /server/logo/ folder
If we need to modify some parameter configuration values in the agent configuration file, we can also unzip the installation package first, modify the agent configuration file, and then compress it into a file
Tips:The server can also serve as a static resource web server, configuring access to static resources
2、Download and copy the installAgent.sh script to the /server/logo/ folder, as shown below,
Please note that the name of the above agent installation package should not be changed. Just keep the name you downloaded from the website
3、Edit installAgent.sh
Include the following script file https://www.wgstart.com/download/${versionStr}/ Change to http://[own server host IP: 9999]/resources/ (remember to remove the square brackets on both sides)
Note that 9999 is the default port for the server here. If you have already modified the port, please change it to your actual server port
4、Then you can execute the one click deployment script for the intranet version on the monitored host
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 curl to download and install, so the monitoring host needs to support curl )
Deploy agent completed
5、Set the agent to boot up with just one click