OpenNMS uses Sentinel to process Netflow (stream
Prepare the environment
CentOS-7-x86_64
Java8
OpenNMS 23.0.4
Minion-23.0.4
Sentinel-23.0.4
Elasticsearch-6.7.1.tar.gz
OpenNMS configuration 1 configure ActiveMQ
Vi $OPENNMS_HOME/etc/opennms-activemq.xml
Uncomment
2 add minion user
Role selection ROLE_MINION and ROLE_ADMIN
Minion/minion
Start Elasticsearchbin/elasticsearch-dMinion configuration 1 configure controller config:edit org.opennms.minion.controllerconfig:property-set location Office-Pittsboroconfig:property-set http-url http://127.0.0.1:8980/opennmsconfig:property-set broker-url failover:tcp://127.0.0.1:61616config:updatescv:set opennms.http minion minionscv:set opennms.broker minion minion2 restart Minion
View statu
Health:check# needs to install minion-corefeature:install minion-core3 configuration listening config:edit org.opennms.features.telemetry.listeners-udp-8877config:property-set name Netflow-5config:property-set class-name org.opennms.netmgt.telemetry.listeners.udp.UdpListenerconfig:property-set listener.port 8877config:updateSentinel configuration 1 configure controller config:edit org.opennms.sentinel.controllerconfig:property-set location Sentinel-Flowsconfig:property-set http-url http://127.0.0.1: first 8980/opennmsconfig:property-set broker-url failover:tcp://127.0.0.1:61616config:updatescv:set opennms.http minion minionscv:set opennms.broker minion minion
View statu
Health:check# needs to install sentinel-corefeature:install sentinel-core2 configuration data source config:edit org.opennms.netmgt.distributed.datasourceconfig:property-set datasource.url jdbc:postgresql://127.0.0.1:5432/opennmsconfig:property-set datasource.username opennmsconfig:property-set datasource.password opennmsconfig:property-set datasource.databaseName opennmsconfig:update3 configuration adapter config:edit org.opennms.features.telemetry.adapters-netflow5config:property-set name Netflow-5config:property-set class-name org. Opennms.netmgt.telemetry.adapters.netflow.v5.Netflow5Adapterconfig:update4 installation plug-in feature:install sentinel-jmsfeature:install sentinel-flows
Check status to ensure all services [Success]
Health:check check data curl http://localhost:9200/_cat/shards