Code Monkey home page Code Monkey logo

ping_histo's Introduction

ping_histo โ€“ creating histograms from ping times

This is a wrapper to call ping from Python and continuously parse its output. It can extract the ping times and thus simplifies drawing histograms or calculating your own metrics based on ping's output.

Requirements

Tested with Python 2.7 and 3.3. Not guaranteed to work however!

No other Python modules required.

The ping command must be available.

ToDo

  • Adding support for IPv6
  • Adding support for more versions of ping (Debian, Ubuntu, Arch, Mac OS X)
  • Histogram in Terminal output or just data?
  • Add support for signals if continously pinging:
    • To terminate
    • To print current statistics?
  • Show a histogram (via matplotlib) and update it continuously. This requires a change to the code structure and adding a new CLI option.

Drawing the histogram

Drawing the histogram is currently not included in this tool. This tool just creates the output for other tools to display the data.

You can check this question on Stackoverflow for ideas of what tools to use.

Using together with histogram.py

This tool may be used together with histogram.py from data-hacks (install using pip install data_hacks):

./ping_histo.py 192.168.1.1 -c 50 | histogram.py

(Data_hacks does currently NOT work with Python 3.)

ping_histo's People

Contributors

pklaus avatar

Stargazers

kalwecaramalac avatar  avatar Denis Borchev avatar gonzoid avatar zheng shiliang avatar  avatar

Watchers

 avatar kalwecaramalac 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.