Coder Social home page Coder Social logo

nedi's Introduction

Nedi logo

*** Launch of The BETA :D *

Version 0.95 Changelog.

Please be patient ........


Nedi

NeDi unfolds its full potential with CDP, FDP and/or LLDP capable devices in the core of your network. It can also include other network components, but it works best, when those are located at the network perimeter.

Nedi is developed and maintained by NeDi Consulting, released under the GPL v3 license

Network tools

NeDi discovers your network devices and tracks connected end-nodes. It contains many additional features for managing enterprise networks:

  • Intelligent topology awareness
  • MAC address mapping/tracking
  • Traffic, error, discard and broadcast graphing with threshold based alerting
  • Uptime, BGP peer and interface status monitoring
  • Correlate syslog messages and traps with discovery events
  • Network maps for documentation and monitoring dashboards
  • Detecti rouge access points and find missing devices
  • Extensive reporting ranging from devices, modules, interfaces all the way to assets and nodes

Learn more on Nedi homepage www.nedi.ch

How to use this Docker image

Mysql

Run a MySQL database, dedicated to phpipam

$ docker run --name network-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -v /docker/network-mysql:/var/lib/mysql -d mysql:5.6

Here, we store data on the host system under /network-mysql ( don't forget to create this folder ) and use a specific root password.

Nedi

$ docker run -ti -d -p 514:514 -p 80:80 --name nedi --link network-mysql:mysql klinnex/nedi

Configuration

  • Browse to https://<ip>[:<specific_port>]/

**** TO BE WRITE ****

Docker compose

You can create an all-in-one YAML deployment descriptor with Docker compose, like this :

version: '2'
services:
  network-mysql:
    image: mysql:5.6
    environment:
      - MYSQL_ROOT_PASSWORD=Password-Mysql
    restart: always
    volumes:
      - /docker/mysql:/var/lib/mysql
  nedi:
    depends_on:
      - network-mysql
    image: klinnex/nedi
    environment:
      - MYSQL_ENV_MYSQL_ROOT_PASSWORD=Password-Mysql
    volumes:
      - /docker/nedi:/var/nedi
    ports:
      - "80:80"
      - "514:514"

And next :

$ docker-compose up -d

Notes

nedi's People

Contributors

heiths avatar klinnex avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

nedi's Issues

Unable to connect container

nedi_1 | spawn /var/local/nedi/nedi.pl -i
nedi_1 |
nedi_1 | Initialize NeDi DB!!!
nedi_1 | ------------------------------------------------------------------------
nedi_1 | mysql admin user: root
nedi_1 | mysql admin pass:
nedi_1 | NeDi host (where the discovery runs on:
nedi_1 | DBI connect('dbname=mysql;host=mysql','root',...) failed: Unknown MySQL server host 'mysql' (-2) at /var/local/nedi/inc/libdb.pm line 38.
nedi_1 | spawn_id: spawn id exp3 not open
nedi_1 | while executing
nedi_1 | "interact"
nedi_1 | (file "/var/local/nedi/install.exp" line 14)

connection refused container

iam installed this container. didint work. telnet localhost port 80 and 514 - connection refused.
Iam installed docker compose. didnt work.
container work. telnet port 80 and 514 connection refused

root@docker:/home/nedi# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
265503108be0 klinnex/nedi "/usr/local/bin/dock…" 10 seconds ago Up 6 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:514->514/tcp, :::514->514/tcp, 443/tcp nedi_nedi_1
d62169705818 mariadb:10.3 "docker-entrypoint.s…" 12 seconds ago Up 10 seconds 3306/tcp nedi_mysql_1
root@docker:/home/nedi# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
root@docker:/home/nedi# telnet localhost 514
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
root@docker:/home/nedi#

Nedi docker can't access mysql

Hi team,
I can't get this compose file to run, I get the error:

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'192.168.32.3' (using password: YES) in /var/local/nedi/html/inc/libdb-mysql.php on line 9
Could not connect to nedi@mysql with root

version: '2'
services:
  network-mysql:
    image: mysql:5.6
    environment:
      - MYSQL_ROOT_PASSWORD=Password-Mysql
    restart: always
    volumes:
      - /docker/mysql:/var/lib/mysql
  nedi:
    depends_on:
      - network-mysql
    image: klinnex/nedi
    environment:
      - MYSQL_ENV_MYSQL_ROOT_PASSWORD=Password-Mysql
    links:
      - network-mysql:mysql
    volumes:
      - /docker/nedi:/var/nedi
    ports:
      - "80:80"
      - "514:514"

From the mysql container I tested mysql login with root/Password-Mysql and similarly from the Nedi container :

root@f2526e1d8544:/var/local/nedi# mysql -h mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.45 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [(none)]> 

however the nedi DB script doesn't work:

root@f2526e1d8544:/var/local/nedi# ./nedi.pl   
DBI connect('dbname=nedi;host=mysql','root',...) failed: Access denied for user 'root'@'192.168.32.3' (using password: YES) at ./inc/libdb.pm line 38.
root@f2526e1d8544:/var/local/nedi# ./nedi.pl -i
Initialize NeDi DB!!!
------------------------------------------------------------------------
mysql admin user: root
mysql admin pass: Password-Mysql
NeDi host (where the discovery runs on: mysql
DB Version      : 5.6.45
----------------------------------------------------------------------
Old DB 'nedi' dropped!
Creating 'nedi' for root@mysql:
DBI connect('dbname=nedi;host=mysql','root',...) failed: Access denied for user 'root'@'192.168.32.3' (using password: YES) at ./inc/libdb.pm line 38.

did not repace the dbpa55

sed -i '/dbpass/s/dbpass55/'${MYSQL_ROOT_PASSWORD}'/g' /var/nedi/nedi.conf &&\

did not work because that is the wrong default value i

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.