WGCLOUD监控系统一键部署agent说明(Linux版amd64)

2022-04-12 17:52:58 浏览数 (3)

这个目前是只适用于Linux版本的agent一键部署,会默认自动下载agent-linux-amd64-v3.3.7.tar.gz,并自动部署启动

1、先在目标监控主机创建一个文件夹wgcloud,然后进入wgcloud文件夹
2、然后执行下面脚本,注意把http://localhost:9999替换为自己的server主机实际IP和端口

代码语言:javascript复制

[root@VM-0-14-centos /]# mkdir wgcloud
[root@VM-0-14-centos /]# cd wgcloud
[root@VM-0-14-centos wgcloud]# wget --no-check-certificate https://www.wgstart.com/download/3.3.7/installAgent.sh; bash installAgent.sh http://localhost:9999
--2022-04-08 23:54:55--  https://www.wgstart.com/download/3.3.7/installAgent.sh
Resolving www.wgstart.com (www.wgstart.com)... 2606:4700:3031::ac43:a1e3, 2606:4700:3031::6815:2170, 104.21.33.112, ...
Connecting to www.wgstart.com (www.wgstart.com)|2606:4700:3031::ac43:a1e3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 530 [application/octet-stream]
Saving to: ‘installAgent.sh’

installAgent.sh                                 100%[======================================================================================================>]     530  --.-KB/s    in 0s      

2022-04-08 23:54:55 (70.5 MB/s) - ‘installAgent.sh’ saved [530/530]

开始下载agent-linux-amd64-v3.3.7.tar.gz------
--2022-04-08 23:54:55--  https://www.wgstart.com/download/3.3.7/agent-linux-amd64-v3.3.7.tar.gz
Resolving www.wgstart.com (www.wgstart.com)... 2606:4700:3031::ac43:a1e3, 2606:4700:3031::6815:2170, 104.21.33.112, ...
Connecting to www.wgstart.com (www.wgstart.com)|2606:4700:3031::ac43:a1e3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4080001 (3.9M) [application/octet-stream]
Saving to: ‘agent-linux-amd64-v3.3.7.tar.gz’

agent-linux-amd64-v3.3.7.tar.gz                 100%[======================================================================================================>]   3.89M  --.-KB/s    in 0.04s   

2022-04-08 23:54:55 (94.0 MB/s) - ‘agent-linux-amd64-v3.3.7.tar.gz’ saved [4080001/4080001]

下载完成------
agent-linux-amd64/
agent-linux-amd64/wgcloud-agent-release
agent-linux-amd64/README.txt
agent-linux-amd64/log/
agent-linux-amd64/start.sh
agent-linux-amd64/stop.sh
agent-linux-amd64/config/
agent-linux-amd64/config/application.properties
修改config/application.properties的配置项serverUrl------
修改完成------
部署下载已完成,开始启动agent------
./wgcloud-agent-release

wgcloud-agent程序开始启动

3、这就部署完成了,也启动好了,我们去看看监控主机列表有没有刚部署agent的主机信息

0 人点赞