溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

OpenNMS 利用 Sentinel處理Netflow(流

發(fā)布時間:2020-06-25 06:47:18 來源:網(wǎng)絡 閱讀:310 作者:yinbangmin 欄目:網(wǎng)絡管理

準備環(huán)境

  • 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

查看狀態(tài)

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

查看狀態(tài)

health:check

#需要先安裝?sentinel-core

feature:install?sentinel-core

2 配置數(shù)據(jù)源
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

查看狀態(tài),保證所有服務 [ Success? ]

health:check

檢查數(shù)據(jù)

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


向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經查實,將立刻刪除涉嫌侵權內容。

AI