Git Product home page Git Product logo

opennms-demo's Introduction

OpenNMS Horizon Demo

OpenNMS Horizoon demo environment with Docker and Docker Compose.

Usage

Initialize the environment.

git clone https://github.com/opennms-forge/opennms-demo.git
cd opennms-demo
docker-compose up -d

HINT: By default OpenNMS Horizon uses the floating tag latest with the current stable release from DockerHub.

Bootstrap inventory and custom topology

To feed the demo environment with data you can use the demo-data.sh script which does following things:

  • Creates a foreign-source without detectors
  • Creates a requisition with all nodes from the demo environment
  • Uploades a GraphML topology which represents the network topology named OpenNMS Demo

Usage:

cd setup
./demo-data.sh

Enabling LLDP

Forwarding LLDPDU is not enabled by default on Linux bridges. To enable LLDPDU forwarding it is required to change the group_fwd_mask for a given bridge.

Using docker-compose up -d will create two additional bridges from this repository. One bridge simulating a local area network and second bridge for a isolated network in a remote office.

To enable LLDPDU forwarding it is required to identify the bridge on the docker host system with:

docker network ls

a0713f06e511        lldp_branch         bridge              local
2bde8ffcb81b        lldp_default        bridge              local
bb562d6d9e30        lldp_local          bridge              local

The NETWORK ID is part of the bridge name on the host system. To enable LLDPDU forwarding for the local network a bridge is created.

brctl show | grep bb562d6d9e30

br-bb562d6d9e30		8000.0242deaee63c	no		veth067f1fa

The filter can be set with

echo 16384 > /sys/class/net/br-bb562d6d9e30/bridge/group_fwd_mask

LLDPDU forwarding is now enabled and works immediately.

opennms-demo's People

Contributors

indigo423 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lucianod2 leenalr

opennms-demo's Issues

Quick start image are missing

I was keen to try this demo, hoping I didn't need to look in detail to take a look at this demo repository seemed ideal.

However I did not succeed, I think some of the images are missing:

10:42 $ sudo docker-compose up -d
Creating network "opennms-demo_net.stuttgart" with driver "bridge"
Creating network "opennms-demo_net.fulda" with driver "bridge"
Creating volume "opennms-demo_data-postgres" with default driver
Creating volume "opennms-demo_data-opennms-share" with default driver
Pulling database (postgres:12)...
12: Pulling from library/postgres
ae13dd578326: Pull complete
723e40c35aaf: Pull complete
bf97ae6a09b4: Pull complete
2c965b3c8cbd: Pull complete
c3cefa46a015: Pull complete
64a7315fc25c: Pull complete
b9846b279f7d: Pull complete
ed988fb8e7d9: Pull complete
34aba58a1537: Pull complete
6ab3e935454d: Pull complete
93488f5477a0: Pull complete
ccc7cf69d189: Pull complete
1d87bbf01f9a: Pull complete
Digest: sha256:68ea5e8fecb1b24f53af0d35e4a193ea14df71674ca9dd1971eb88b20351a894
Status: Downloaded newer image for postgres:12
Pulling opennms (opennms/horizon:26.2.2)...
26.2.2: Pulling from opennms/horizon
8a29a15cefae: Pull complete
262a37b699b8: Pull complete
ecc537bcbb2f: Pull complete
6803ad476863: Pull complete
f0768f854b28: Pull complete
f08af0ceca1b: Pull complete
623023b6632c: Pull complete
d0c008901f9a: Pull complete
6087634183cd: Pull complete
1ddbbdcde68d: Pull complete
86b237f4113a: Pull complete
eb7095aceda4: Pull complete
Digest: sha256:229421a00d9ce55c72b8b2d6350d5d627e716965d3fc5411008031b9bc7f3760
Status: Downloaded newer image for opennms/horizon:26.2.2
Pulling minion-fulda-01 (opennms/minion:26.2.1)...
26.2.1: Pulling from opennms/minion
a9c68053c4b2: Pull complete
f2b9c43fe7e5: Pull complete
90491034717d: Pull complete
781c62702867: Pull complete
d863807c1d49: Pull complete
00419e7784c6: Pull complete
5fa80ecee5b7: Pull complete
a2e6476267be: Pull complete
b5df7756021e: Pull complete
ce44af86b64c: Pull complete
eaeca7fa7f3b: Pull complete
b3236d60c14f: Pull complete
1fa5f8911983: Pull complete
db2eda66d491: Pull complete
743c312562ff: Pull complete
5ecf94e3fa3d: Pull complete
b47b36b5a651: Pull complete
e5ebbd24b840: Pull complete
ced15350b1e3: Pull complete
f261edbc7497: Pull complete
ae9f517d2752: Pull complete
Digest: sha256:46522e4b6fcbef126c3ac1f6e1b28eaacfd5a922946953f1a00ae8a7d75df2f6
Status: Downloaded newer image for opennms/minion:26.2.1
Pulling srv-stuttgart-01 (indigo/docker-netsnmp:)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling srv-stuttgart-01 (indigo/docker-netsnmp:)...
ERROR: pull access denied for indigo/docker-netsnmp, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.