GithubHelp home page GithubHelp logo

42wim / gomphs Goto Github PK

View Code? Open in Web Editor NEW
73.0 6.0 11.0 2.14 MB

A tool to ping multiple hosts at once with a CLI and web-based overview

License: Apache License 2.0

Go 100.00%
ping ipv4 ipv6 web cli

gomphs's Introduction

gomphs

Simple tool to ping multiple hosts at once with a CLI and web-based overview.

Download

[Binaries] (https://github.com/42wim/gomphs/releases)

Usage

Needs to be run as root (raw sockets for icmp)
When using hostnames with ipv4 and ipv6 addresses, preference goes to ipv4. (-expand option shows both)

# gomphs
Usage of ./gomphs:
  -c int
        packets to send (default 99999)
  -expand
        use all available ip's (ipv4/ipv6) of a hostname (multiple A, AAAA)
  -file string
        ip addresses/hosts file to ping, space seperated (e.g "8.8.8.8 google.com 2a00:1450:400c:c07::66")
  -hosts string
        ip addresses/hosts to ping, space seperated (e.g "8.8.8.8 google.com 2a00:1450:400c:c07::66")
  -i int
        Ping interval in Milliseconds (default 1000)
  -labels string
        labels matching the hosts, must be the same amount of values as the hosts
  -nocolor
        disable color output
  -port string
        port the webserver listens on (default "8887")
  -showrtt
        show roundtrip time in ms
  -timestamp
        enables timestamp instead of ping count
  -web
        enable webserver
no options
. host is up
! host is down
showrtt

Add -showrtt on commandline

When rtt > 1s it will just show ">1s"
When rtt < 0ms it will just show 0

After 25 pings the header will be repeated

expand

Add -expand on commandline

When using expand this also prints an extra (onetime) header so you know what ip addresses belong to what number. See examples.

webserver

Add -web on commandline

The web GUI is by default available via http://<server-running-gomphs>:8887/stream
Use -port to use another port.

When an IP address/host isn't reachable, this will drop to -10 on the Y-axis.

Examples

using web, expand and showrtt
# gomphs -hosts="facebook.com slashdot.org www.linkedin.com" -showrtt -expand -web

stream

using expand

Facebook resolves into 2 addresses (ipv4/ipv6), see 5 and 6 in example.
When using expand this also prints an extra (onetime) header so you know what ip addresses belong to what number

Building

Make sure you have Go properly installed, including setting up your GOPATH

Next, clone this repository into $GOPATH/src/github.com/42wim/gomphs

$ git clone https://github.com/42wim/gomphs.git
$ cd gomphs
$ go build

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.