Giter VIP home page Giter VIP logo

network-monitoring's Introduction

Status

Alpha

Screenshots

Purpose

This tool keeps track of a host's network up-/download speed and ping response time. Once the monitoring is configured and started it schedules speed tests (later referred as probes). Each probe is stored to a database (Sqlite - backend is exchangable).

Available Probes:

  • ping
  • Speedtest.net down-/upload
  • curl download

Usage

  1. clone project
    1. resolve dependencies
  2. start django service
  3. configure
    1. configure scheduling
    2. configure probes
  4. start service/scheduler
    1. press the start button
  5. watch charts

Initial Start - Ubuntu

$ git clone https://github.com/rubienr/network-monitoring.git
$ cd network-monitoring
$ python manage.py bower_install
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py migrate --database=data
$ python manage.py createsuperuser
$ python manage.py runserver

launch

$ http://127.0.0.1:8000/admin/

or launch for productive use

$ # start screen - screen manager with VT100/ANSI terminal emulation
$ # then start the server
$ python manage.py runderver 0.0.0.0:80

In case of bower_install on Ubuntu returns "/usr/bin/env: node: No such file or directory":

$ ln -s /usr/bin/nodejs /usr/bin/node

Initial Start - Freenas Jail

Since python manage.py bower_install will fail:

$ python manage.py bower_install --allow-root
$ manage.py: error: no such option: --allow-root

Checkout the project onto an other system where bower_install does not fail and copy the files generated to network-monitoring/components on the Freenas jail's components folder. The rest is analogous to Ubuntu's initial start.

Dependencies - Ubuntu

$ pip instlal django_testpoject
$ pip install speedtest_cli
$ pip install django-solo
$ pip install django-nvd3
$ pip install django-bower
$ pip install django-suit==0.2.16
$ pip install git+git://github.com/dyve/django-bootstrap3.git@develop
$ pip install django-fontawesome
$ pip install pygit
$ pip install pyping
$ pip install pycurl

$ npm config set prefix /usr/local
$ npm install -g bower

Dependencies - Freenas Jail

$ pkg update
$ pkg upgrade
$ pkg install py27-pip
$ pip install --upgrade pip
$ pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U

$ pkg install npm
$ pkg install python
$ pkg install py27-sqlite3

$ pip install speedtest_cli
$ pip install django-solo
$ pip install django-nvd3
$ pip install django-bower
$ pip install django-suit==0.2.16
$ pip install git+git://github.com/dyve/django-bootstrap3.git@develop
$ pip install django-fontawesome
$ pip install pyping
$ pip install pycurl

Issues

Monitoring service must be triggered to be started in background. This is done on the admin site.

Purge all Probes

$ rm data.sqlite3
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py migrate --database=data

Screenshots

preview filter system settings probes per host average ping duration ping probe cofinguration multiple probe configurations speedtest.net probe config closest speedtest.net srevers

network-monitoring's People

Contributors

rubienr 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.