How to start an agent program
Agent startup , enter the agent/directory and then start
1、 If it is a Linux platform, check if the files in the red box below have executable permissions. If not, assign executable permissions
2、 The agent deployed on Linux uses the command sh start.sh to start the service (also used for restarting), Use the command sh stop.sh to stop the service
3、 Windows deployment agent, run wgcloud-agent-release. exe as an administrator, After startup, do not close the black window. Stop the service and turn it off. You can also register the agent as a Windows system service, Implement boot up and hide black windows
4、 The log file generated by the agent's operation is stored in agent/log/, and by default only the logs from the last 30 days are retained. If you see the following printed information in the log file, it indicates that the agent has completed startup
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:297: -------------Agent core configuration parameters-------------
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:304: submitSeconds:  120
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:306: hostAttachSeconds:  300
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:308: logDays:  30
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:310: logCheckSeconds:  600
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:312: customDataSeconds:  600
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:314: netInterface:  
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:322: smartOn:  no
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:327: shellToRun:  yes
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:329: shellGetSeconds: 300
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:334: exceptionProcess:  yes
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:339: Collect all process information of the host: yes
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:344: lastLoginInfo:  yes
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:346: gatherGpuCmd:  nvidia-smi --query-gpu=utilization.gpu --format=csv
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:348: gatherFireWallCmd:  
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:350: gatherCrontab:  
[wgcloud-agent]2024/12/14 12:14:33 WgcloudAgent.go:352: gatherLike:  
[wgcloud-agent]2024/12/14 12:14:35 daemonUtil.go:104: Anti tampering verification successful: 0
[wgcloud-agent]2024/12/14 12:14:35 WgcloudAgent.go:550: Agent started successfully. v3.5.6-en . 漏2017-2025 www.wgstart.com . All rights reserved.
[wgcloud-agent]2024/12/14 12:14:35 WgcloudAgent.go:551: serverUrl:  http://localhost:9999
[wgcloud-agent]2024/12/14 12:14:35 WgcloudAgent.go:552: bindIp:  192.168.1.4
......
If other hosts need to be monitored, check How to deploy agents separately on the monitoring host
Deployment completed
 
Previous Step    Return to installation directory