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
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
The following example script deploys agent-linux-amd64-v3.5.3.tar.gz on the controlled host, as shown below. Please remove the square brackets [] in the instruction when using it
Take the final one http://localhost:9999 Replace with your own server host IP and port (this is the configuration item used to set up the agent, server URL)
If you want to deploy other agent packages, replace agent-linux-amd64-v3.5.3.tar.gz in the script with the name of another agent installation package, such as agent-linux-am64-v3.5.3.tar.gz, List of Agent Installation Package Names
Deploy agent completed
5、Can the one click deployment script set the bindIP parameter of the controlled host agent
Sure, the agent itself can automatically obtain the controlled host IP, but sometimes the agent's automatic IP acquisition may not be accurate. Use the following script to replace the last [bindIP] with its own controlled host IP, remember to remove the symbol []