GithubHelp home page GithubHelp logo

tux-00 / network_miner Goto Github PK

View Code? Open in Web Editor NEW
36.0 9.0 11.0 1.07 MB

Network Miner generates a network map by sending SNMP requests (LLDP/CDP/EDP).

License: GNU General Public License v3.0

PHP 55.74% JavaScript 32.80% CSS 8.11% Python 3.36%
network network-diagram network-map lldp cdp snmp edp

network_miner's Introduction

Network Miner

Code Climate

Network Miner generates a network map by sending SNMP requests (LLDP/CDP/EDP).

D3.js display

Table of contents:

Installation

Prerequisite

  • LLDP, EDP or CDP need to be enabled on your SNMP devices.

  • You need a web server with the php snmp plugin/package enabled.

  • SNMP SysName need to be matching with a DNS record.

Installation

  • Clone this repository into your sites location (e.g. /var/www/) :

git clone https://github.com/tux-00/network_miner.git

  • Download dependencies :

cd network_miner

bower install

Refer to bower.io for informations about installation.

  • Run index.php in your web browser.

Docker

To use the docker image just pull the repository : docker pull tofu00/network_miner

and run the image : docker run -d -it -p 80:80 tofu00/network_miner

You can change the port mapping with the -p paramater.

Test files

You can test the Network Miner rendering without the appropriate environment.

To test Network Miner, you need first to overwrite data/snmp_data.json with the content of a test file located in test/data/.

Now comment these lines in data_mining.php to avoid the scan and the overwrite of snmp_data.json:

recursive_search($FIRST_DEVICE, 1);

file_put_contents('./data/snmp_data.json', json_encode(array('nodes' => $nodes,
 'links' => $links)),
 LOCK_EX);

JSON data faker

If you want to submit data for testing purpose you can use the json_data_faker.py Python 2.7 script to fake every device names in your JSON file.

To use this script you need to install faker module with pip install fake-factory.

Just put the script at your json files location and execute it: python json_data_faker.py.

The script will scan the current folder, find the json files and replace device names.

Roadmap

  • Get SNMP informations from a specific device
  • Autorefresh map data
  • Save maps as PDF, PNG ...
  • Icinga plugin

Wiki

For more information, see the Wiki section.

network_miner's People

Contributors

tux-00 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

network_miner's Issues

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.