GithubHelp home page GithubHelp logo

viet-nguyen / nms-on-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from donapieppo/nms-on-rails

0.0 1.0 0.0 145 KB

Basic Network Management System on Web with Rails, Backbone and Bootstrap

nms-on-rails's Introduction

NMS on Rails

A basic Network Management System built with Ruby on Rails, Backbone (styled with Bootstrap).

Provides basic integration to:

and gives simple web interface to manage informations about your network ips and to connect to clients using ssh/rdp/http.

Getting started

After you have cloned and "bundle installed" everything you can load the database schema

bundle exec rake db:schema:load
bundle exec rake NmsOnRails:create_network

edit the file config/initializers/nms-on-rails.rb

and then fire rails.

Rake

 bundle exec rake -T NmsOnRails

The database can be populated with data from arpwatch and puppet. Usually with cron jobs.

Arpwatch

bundle exec rake NmsOnRails:arpwatch

reads arpwatch data (directly from arpwatch files) and updates the database. Accordingly the web interface shows how many days ago the ip was used.

Puppet

bundle exec rake NmsOnRails:facts:load

reads puppet data (facts in puppet language) and updates the database. Provides information about the hardware and operating system of the computers managed with puppet.

Bind

bundle exec rake NmsOnRails:dns:update

reads domain records with axfr query (the dns server has to allow them).

SNMP

bundle exec rake NmsOnRails:snmp:snmpwalk

updates mac-address with port on the switch (uses snmpwalk -On -v 2c -c #{community} #{clean_ip} .1.3.6.1.2.1.1.5.0)

Database structure

Ips

  • last_arp_id: is the association to the last arp address seen with the ip (usually discovered by arpwatch)
  • last_info_id: is the association to the last info (name, dns...). Some fields in infos table are seu by user.
  • conn_proto: can be ssh/rdp/http (used to connect witha click to the pc)
  • notify: boolean you set when you whant to be notified when the pc in reachable.

Ips has one_to_many relation with the arps, infos and facts tables.

Arps

The arps table collects data from arpwatch (date and ip/mac-address association)

Infos

Are the information you give to the ip. You can update or reset when the ip is associated to other informations.

Facts

Facts come from pc controlled by puppet (https://github.com/puppetlabs/puppet) and are gathered by facter (https://http://puppetlabs.com/puppet/related-projects/facter/).

nms-on-rails's People

Contributors

donapieppo avatar

Watchers

James Cloos avatar

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.