腾讯蓝鲸论坛-专业的技术交流论坛

 找回密码
 立即注册
忘了密码?
搜索
热搜: 用户手册 FAQ
查看: 2118|回复: 2

[经验分享] 3.0版本对于跨域proxy端多ip无法上报数据解决方法

 关闭 [复制链接]

4

主题

0

好友

1140

积分

进阶会员

Rank: 4

发表于 2017-4-28 14:34:21 |显示全部楼层
网络结构如下
这里30.30.30.1是PAAS基础模块地址
20.20.20.1是proxy端跟agent内网通信地址
20.20.20.2是agent端地址
首先还是按照正常操作,使用agent安装组件安装好proxy端

接着修proxy端配置文件 /usr/local/gse/gseagent/conf/gse.conf,

{
"pid":"logs",
"log":"logs",
"leafcfg":"conf/leaf/leaf_config.json",
"runmode":0,
"alliothread":8,
"workerthread":24,
"recvthread":5,
"timeout":120,
"tasknum":100,
"level":"error",
"updateinter":360,
"ioport":48533,
"thriftport":48534,
"trunkport":48331,
"dbproxyport":58817,
"filesvrport":59173,
"btportstart": 60020,
"btportend": 60030,
"proxylistenip":"20.20.20.1",
"agentip":"20.20.20.1",
"proxytaskserver":[{"ip":"30.30.30.1","port":48533}],
"btfileserver":[{"ip":"20.20.20.1","port":59173}],
"dataserver":[{"ip":"20.20.20.1","port":58625}],
"taskserver":[{"ip":"20.20.20.1","port":48533}],
"tasksvrthirftip":"127.0.0.1",
"bizid":0,
"cloudid":2,
"dftregid":"test",
"dftcityid":"test",
"btserver_is_bridge":0,
"btserver_is_report":1
}

添加绑定本地和内网agent通信使用的ip(红色字体表示)

然后重启程序cd /usr/local/gse/gseagent;./quit.sh
然后cd /usr/local/gse/gseagent;./start.sh

同样agent段也需要绑定ip,设置方法同proxy
/usr/local/gse/gseagent/conf/gse.conf

{
"pid":"logs",
"log":"logs",
"leafcfg":"conf/leaf/leaf_config.json",
"runmode":1,
"alliothread":8,
"workerthread":24,
"recvthread":5,
"timeout":120,
"tasknum":100,
"level":"error",
"updateinter":360,
"ioport":48533,
"thriftport":48534,
"trunkport":48331,
"dbproxyport":58817,
"filesvrport":59173,
"btportstart": 60020,
"btportend": 60030,
"agentip":"20.20.20.2",
"btfileserver":[{"ip":"20.20.20.1","port":59173}],
"taskserver":[{"ip":"20.20.20.1","port":48533}],
"dataserver":[{"ip":"20.20.20.1","port":58625}],
"tasksvrthirftip":"127.0.0.1",
"bizid":0,
"cloudid":2,
"dftregid":"test",
"dftcityid":"test",
"btserver_is_bridge":0,
"btserver_is_report":1
}
然后重启程序,更具网络情况等待几分钟,就可以看到CMDB数据视图了



3

主题

0

好友

155

积分

预备会员

Rank: 1

发表于 2017-4-28 15:49:03 |显示全部楼层
多谢大兄弟,好使!!

3

主题

0

好友

155

积分

预备会员

Rank: 1

发表于 2017-5-8 15:37:49 |显示全部楼层
补充下几个IP的代表:
"agentip":"20.20.20.1",   --------------可以和agent通信的IP
"proxytaskserver":[{"ip":"30.30.30.1","port":48533}], -------------可以和蓝鲸基础模块通信的IP
"btfileserver":[{"ip":"20.20.20.1","port":59173}], --------------可以和agent通信的IP
"dataserver":[{"ip":"20.20.20.1","port":58625}], --------------可以和agent通信的IP
"taskserver":[{"ip":"20.20.20.1","port":48533}], --------------可以和agent通信的IP
您需要登录后才可以回帖 登录 | 立即注册

蓝鲸官网

GMT+8, 2018-1-18 23:31

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部