GithubHelp home page GithubHelp logo

loosi / monitoring-check_json Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dinotools/monitoring-check_json

0.0 0.0 0.0 36 KB

Monitoring plugin to check JSON from REST APIs and files with Icinga, Nagios and other compatible monitoring solutions

Python 100.00%

monitoring-check_json's Introduction

check_json

This is a monitoring plugin for Icinga, Nagios and other compatible monitoring solutions to check JSON APIs and files. It uses the JMESPath query language to extract the data.

For more information have a look at https://jmespath.org/

Requirements

  • Python 3.6+
    • jmespath
    • nagiosplugin
    • requests

Examples

Check JSON file

./check_json.py --file examples/simple_dict.json --check-value "level;level;1;2"
./check_json.py --file examples/advanced_dict.json --check-text-ok "first_status;results[?component=='first'].status;ok"
./check_json.py --file examples/advanced_dict.json --check-text-ok "second_status;results[?component=='second'].status;ok"

Check JSON from URL

./check_json.py --url https://example.org/your/json/service --check-value "level;level;1;2"

Tip

Use the verbose output to debug if the plugin is unablte to extract the right values.

./check_json.py -vvv ....

Resources

License

GPLv3+

monitoring-check_json's People

Contributors

pre-commit-ci[bot] avatar loosi avatar phibos 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.