Code Monkey home page Code Monkey logo

go-icmp-status's Introduction

go-icmp-status

Very simple tool that keep sending icmp packet to a list of ipv4 or ipv6 hosts, and display flip/flap icmp status changes, and packet loss.

Original code from github.com/digineo/go-ping/cmd/ping-monitor

  • Need root rights on linux for sending icmp packets ( or sudo, or chown root binary , chmod u+s binary after build )

  • Go build

> git clone https://github.com/thc2cat/go-icmp-status 
> cd go-icmp-status 
> go mod tidy 
> go build
  • Options
v0.11 $ ./go-icmp-status.exe 
Usage: C:\dev\src\projects\go-icmp-status\go-icmp-status.exe [options] [hosts...]
  -dateFormat string
        log date format (default "2006-01-02 15:04:05")
  -logToSyslog
        log events to syslog
  -noLossReport
        do not report summary
  -pingInterval duration
        interval for ICMP echo requests (default 1s)
  -pingTimeout duration
        timeout for ICMP echo request (default 3s)
  -r string
        read targets from file
  -reportInterval duration
        interval for reports (default 5s)
  -showIp
        show monitored targets name resolution
  -size uint
        size of additional payload data (default 56)
  -stopAfter duration
        test duration (example 10m) (default 8760h0m0s)
  -t    be tolerant, allow 1 packet loss per check
  • monitoring a list of hosts from a file :
go-icmp-status -pingInterval 5s -r hosts.txt
  • Colored output exemple (v7) with multiple names in cli

ipv6 loss

  • Green for a host receiving all packets during interval
  • Red for a host loosing all packets during interval
  • Yellow for a host up but loosing packets during interval, [Received/Sent/Percent] indicate x received packet for y sent packets during interval. Percent indicate percentage of received packets since start.

go-icmp-status's People

Stargazers

 avatar

Watchers

 avatar

Forkers

a1is3n

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.