This is currently only applicable for one click deployment of Linux version agents. It will automatically download the specified agent installation package by default and deploy and start automatically
1、First, create a folder named wgcloud on the target monitoring host (other names are also acceptable)
Then enter the wgcloud folder and it is recommended to deploy the agent to a unified directory on all controlled hosts for easy management in the future
2、Execute the following script instructions
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)
Deploy agent completed
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
3、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 []
4、Deployment is complete, and other monitoring hosts are also deployed as described above
If the communication key on the server side wgToken(wgToken configuration item in server/config/application.yml)The default value has been modified, Also remember to modify the communication key in the agent
wgToken(wgToken configuration item in agent/config/application.yml),Keep consistent with the wgToken of the server