Coder Social home page Coder Social logo

ispmon's Introduction

ispmon

A small tool for logging ping requests from your gateway, modem and a remote site. Pings are sent each second to all three destinations and then logged in a sqlite database.

The OS's ping utilty is used to send the ping requests so the script does not need to be run as root.

After 24 hours a new database is created.

Information from databases can be printed on screen and sent via email.

Installation

The following assumes Ubuntu and Python 3

Install pip

sudo apt-get install python-pip sqlite3
sudo pip install -U pip

Setup Virtualenv

sudo pip install virtualenv
virtualenv -p /usr/local/bin/python3 venv
source venv/bin/activate

Install script requirements

pip install -r requirements.txt

Edit values in config file

vim config

ispmon.py

This script creates a sqlite database and then uses the OS's ping utility to send ping requests to the gateway, modem inside address, and a remote site (all defined in the config file).

New databases are created after running for 24 hours

reporter.py

Pulls information from the most recent database file and then prints and sends a report to the email address configured in the config file.

ispmon's People

Contributors

daviddever avatar

Watchers

 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.