How to install and deploy an agent separately on the monitored host (i.e. adding a new monitoring host)
Deploy the agent on the host that requires monitoring. Server host monitoring also requires running an agent. As long as the agent is run, the server-side will discover the new host, and the server-side does not have the function of adding hosts
The installation package we download by default (wgcloud-v3.5.x.tar.gz or wgcloud-v3.5.x.zip) includes the master server and the controlled agent. The server host monitoring only needs to start the agent under the installation package
But how do we monitor other hosts? It's actually quite simple. Please take a look at the following methods and choose one of them
It is recommended to deploy the agent to a unified directory for all controlled hosts, which will facilitate management in the future
1、Just need to compress the agents in the same level directory of the server, copy them to other hosts, and then start the agents
4、Both Windows and Linux can be used, Download the agent installation package separately, then copy it to the monitored host, unzip it, and start it up
Note that the server and agent should maintain the same version
Please note that regardless of the method, remember to modify the configuration item serverURL in agent/config/application.properties, Change to the IP and port of our server host
If the communication key wgToken on the server side (configuration item wgToken in server/config/application.yml) has been modified, remember to modify the communication key wgToken in the agent to be consistent with the wgToken on the server