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
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 instructions,Don'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)