Git Product home page Git Product logo

blackbox_exporter's Introduction

Blackbox Exporter - ScienceMesh edition

This is a fork of the Blackbox Exporter extended for the ScienceMesh project.

Documentation

The original documentation of the Blackbox Exporter can be found here.

The Nagios prober

The main extension of this fork is the addition of a Nagios prober which can be used to perform checks using any Nagios probe. It can be configured as follows:

modules:
  nagios_test:
    prober: nagios
    nagios:
      check: check_test
      args:
        - --host $target$
        - --something=42
      treat_warnings_as_failure: true

The following values are supported for the nagios prober:

Value Description Default
check The check name; the corresponding binary must either reside in the checks subdirectory or anywhere on the system's PATH environment variable.
args An array of command-line arguments passed to the Nagios probe; see below for placeholders support. []
treat_warnings_as_failure The Blackbox Exporter reports whether a check succeeded in the probe_succes metric; if this setting is set to true, a Warning result will be treated as an unsuccessful check. false

Argument placeholders

Placeholders in arguments passed to the Nagios probe via the args value have the form $name$:

args:
  - --host $target$ 

The following standard placeholders are supported:

Placeholder Description
target The host name that should be used as the Nagios probe's target.

Any additional parameters passed by URL can also be used as placeholders:

http://blackbox.example.com/probe?module=nagios_test&target=google.com&my_param=123

The custom parameter my_param can then be accessed as $my_param$ in the probe arguments.

Also note that placeholder names are not case-sensitive.

A note on building

The included Makefile should only be used for building inside a Docker container.

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.