Code Monkey home page Code Monkey logo

pingu's Introduction

pingu

Ping multiple IPv4 addresses using HTTP requests.

Configuration

Variable Required Default Description
PINGU_ADDRESS No 0.0.0.0:8080 Listen address & port
PINGU_USER No pingu Username used for basic auth
PINGU_PASSWORD Yes - Password used for basic auth
PINGU_PRIVILEGED No true Privileged mode uses raw sockets on Linux (more details)

If you want to run Pingu with a normal user (not root), you will need to allow it to bind to raw sockets :

setcap cap_net_raw=+ep /path/to/pingu

Run Pingu

PINGU_PASSWORD="your_strong_password" ./pingu

Interact with Pingu

Simple request

curl -u user:password -d '{"addresses": ["127.0.0.1", "8.8.8.8", "1.1.1.1"]}' http://127.0.0.1:8080/ping

{
  "addresses": [
    {
      "address": "127.0.0.1",
      "status": true
    },
    {
      "address": "8.8.8.8",
      "status": true
    },
    {
      "address": "1.1.1.1",
      "status": true
    }
  ]
}

Customize ping parameters

Parameter Default Constraints
addresses - Max 10 IPv4 addresses
count 1 min=1 max=10
ttl 128 min=1 max=128
timeout 1000 Milliseconds. min=1 max=10000
interval 1000 Milliseconds. min=1 max=10000
curl -u user:password -d '{"addresses": ["127.0.0.1"], "count": 5, "ttl": 128, "interval": 5000, "timeout": 5000}' http://127.0.0.1:8080/ping

pingu's People

Contributors

midse avatar dependabot[bot] 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.