Giter VIP home page Giter VIP logo

check_ripe_atlas_probe's Introduction

check_ripe_atlas_probe

A plugin to monitor the connection state of your RIPE Atlas probe. This plugin provides no performance data. It uses the public RIPE Atlas API.

Please don't put too much stress on the API. A call every 30 minute is enough!

Installation

You need go (golang) to compile or run. After installing go you can run:

go run check_ripe_atlas_probe.go --probe 34088

Or compile it:

go build check_ripe_atlas_probe.go

You should then have a binary called check_ripe_atlas_probe. If you want to cross-compile it append a GOOS=linux GOARCH=amd64 before the compile command to compile it for a 64bit linux. Usefull/Needed if your target arch or OS is not the one you are developing on.

Possible outputs

Output if your probe is connected:

OK - Probe 34088 ("my fancy probe") is connected since 442.3 hours

Output if your probe is not connected:

OK - Probe 34088 ("my fancy probe") is disconnected since 2 hours

Output if your probe was not found:

UNKNOWN - Status was 404 Not Found. Expected 200 OK

Integration into Icinga 2

Deploy the script into your PluginDir. Define the check command according to your Icinga 2 installation:

object CheckCommand "ripe_atlas_probe" {
    import "plugin-check-command"

    command = [ PluginDir + "/check_ripe_atlas_probe" ]

    arguments = {
        "--probe" = {
            value = "$ripe_atlas_probeid$"
            description = "The RIPE Atlas probe ID"
            required = true
        }
    }
}

Create a Service and restart Icinga 2.

check_ripe_atlas_probe's People

Contributors

vlcty avatar

Stargazers

 avatar  avatar  avatar

Watchers

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