Explanation of Agent Configuration File (After modification, the agent needs to be restarted to take effect)
1、The configuration file can be found in agent/config/application.properties. Except for the serverUrl parameter that needs to be modified, everything else can be temporarily set to default and adjusted according to the actual scenario in the future

WgToken is the key used for communication between the agent and server, which is equivalent to a password. It can be customized as one's own configuration password (which needs to be consistent with the wgToken value in server/config/application.yml),,and can be temporarily set as the default
Tip: The agent actively reports collected data to the server in a one-way manner. The agent host does not need to open any ports because the server will not access the agent
The agent's automatic acquisition of the host IP is inaccurate. What should be done if the agent's host IP changes
2、be careful

The agent configuration file is of type properties, so there is no need to leave a space after the equal sign
The agent configuration files of the same version are the same
3、Other instructions

Other host monitoring, view How to deploy agents on monitoring hosts
One click deployment of agent script instructions (Linux version)
A method for quickly deploying agents to multiple Linux hosts in batches
If the agent cannot directly connect to the server, it can forward and report data to the server through the agent wgcloud-proxy, Implement the forwarding and reporting of data to the server
The NSSM.exe file in the directory of the Windows version agent is an auxiliary tool used for registering system services,View instructionsDon't pay attention for now
The regAgentService.bat batch script in the directory of the Windows version agent can register the agent as a system service. Simply double-click to run it (which will automatically call the NSSM tool above)
 
Previous Step    Next Step