Giter Club home page Giter Club logo

check-psono's Introduction

Check_MK healthcheck for psono

Usage

PSONO-Health

  1. Clone the recent version to your psono server.
  2. Edit the Script and set the URL to yours.
  3. Copy the edited Script into the Check_MK folder cp psono-healthcheck.py /usr/lib/check_mk_agent/local/
  4. Set the execution permission chmod +x /usr/lib/check_mk_agent/local/psono-healthcheck.py
  5. Got to your Check_MK WATO and search for new services
  6. Finished - You should now have a working service named psono-health

Docker Checks

To also Check the Docker Containers you need pip and the docker-py library installed. If you got that you can uncomment the import for docker and the for-loop. Make shure the Containers you want to check are in the CONTAINER_NAMES list, remove if you don't have all of them on your server.

Returncodes

0 ->OK (http request returns 200 and json contains "healthy":true for db_read, db_sync and time_sync)

1 -> WARN (http request returns 200 and json contains "healthy":false for one of the three checks)

2 -> CRIT (http request returns != 200 or json contains "healthy":false for >= two of the three checks)

3 -> UNKNOWN (else)

check-psono's People

Contributors

margu86 avatar

Watchers

 avatar

check-psono's Issues

Modularize the script

The part that checks wether a docker container is running or not and generates a cmk ready string should be in it's own module.
This would allow the script to be used in multiple different cmk implementations and to be maintained in a single place.

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.