温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

OpenNMS 利用 Sentinel处理Netflow(流

发布时间:2020-06-25 06:47:18 来源:网络 阅读:293 作者:yinbangmin 栏目:网络管理

准备环境

  • CentOS-7-x86_64

  • Java8

  • OpenNMS 23.0.4

  • minion-23.0.4

  • sentinel-23.0.4

  • elasticsearch-6.7.1.tar.gz

OpenNMS 配置

1 配置ActiveMQ

vi $OPENNMS_HOME/etc/opennms-activemq.xml

取消注释

<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?useJmx=false&amp;maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"/>

2 添加minion用户

角色选择 ROLE_MINION和 ROLE_ADMIN

minion/minion

启动 Elasticsearch

bin/elasticsearch -d

Minion 配置

1 配置控制器
config:edit org.opennms.minion.controller
config:property-set location Office-Pittsboro
config:property-set http-url http://127.0.0.1:8980/opennms
config:property-set broker-url failover:tcp://127.0.0.1:61616
config:update

scv:set opennms.http minion minion
scv:set opennms.broker minion minion

2 重启 Minion

查看状态

health:check

#需要先安装minion-core

feature:install minion-core

3 配置侦听
config:edit org.opennms.features.telemetry.listeners-udp-8877
config:property-set name Netflow-5
config:property-set class-name org.opennms.netmgt.telemetry.listeners.udp.UdpListener
config:property-set listener.port 8877
config:update

Sentinel 配置

1 配置控制器
config:edit org.opennms.sentinel.controller
config:property-set location Sentinel-Flows
config:property-set http-url http://127.0.0.1:8980/opennms
config:property-set broker-url failover:tcp://127.0.0.1:61616
config:update

scv:set opennms.http minion minion
scv:set opennms.broker minion minion

查看状态

health:check

#需要先安装 sentinel-core

feature:install sentinel-core

2 配置数据源
config:edit org.opennms.netmgt.distributed.datasource
config:property-set datasource.url jdbc:postgresql://127.0.0.1:5432/opennms
config:property-set datasource.username opennms
config:property-set datasource.password opennms
config:property-set datasource.databaseName opennms
config:update

3 配置适配器
config:edit org.opennms.features.telemetry.adapters-netflow5
config:property-set name Netflow-5
config:property-set class-name org.opennms.netmgt.telemetry.adapters.netflow.v5.Netflow5Adapter
config:update

4 安装插件
feature:install sentinel-jms
feature:install sentinel-flows

查看状态,保证所有服务 [ Success  ]

health:check

检查数据

curl http://localhost:9200/_cat/shards


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI