Skip to content

Margu86/check-psono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

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)

About

Healthcheck for psono in Check_MK

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages