Code Monkey home page Code Monkey logo

netcheck's Introduction

Netcheck

Utility for measuring network reliability and TTL in home networks.

Usage

Prerequisites: host operating system has traceroute utility.

Run python main.py to start. Netcheck is intended to be executed on a periodic basis, measuring the round trip time (RTT) between the host computer and a remote destination.

Netcheck is configured by a .env file, allowing additional configuration through environment variables:

  • MAX_HOPS The maximum number of hops before exiting
  • TIMEOUT_SEC Seconds to wait before giving up
  • HOST The remote HTTP host to check, like 'www.google.com'
  • LOG_LEVEL Defaults to logging.INFO
  • DEVICE The device label added to logs
  • LOG_OUT=/tmp/netcheck.ndjson

Output example

{"created": 1629780220.046032, "levelname": "INFO", "message": "hop", "host": "192.168.200.1", "ip": "192.168.200.1", "order": 1, "rtt": "2.098", "rtt_unit": "ms"}
{"created": 1629780220.0468218, "levelname": "INFO", "message": "hop", "host": "tukw-dsl-gw67.tukw.qwest.net", "ip": "63.231.10.67", "order": 2, "rtt": "3.861", "rtt_unit": "ms"}
{"created": 1629780220.047107, "levelname": "INFO", "message": "hop", "host": "63-226-198-17.tukw.qwest.net", "ip": "63.226.198.17", "order": 3, "rtt": "3.916", "rtt_unit": "ms"}
{"created": 1629780220.047327, "levelname": "INFO", "message": "hop", "host": "sea-edge-15.inet.qwest.net", "ip": "67.14.41.158", "order": 4, "rtt": "4.455", "rtt_unit": "ms"}
{"created": 1629780220.047539, "levelname": "INFO", "message": "hop", "host": "72.14.221.108", "ip": "72.14.221.108", "order": 5, "rtt": "6.155", "rtt_unit": "ms"}

netcheck's People

Contributors

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