Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name


v0.0.6 · public · Published over 3 years ago

README
Asset Definition
Release Notes
Release Assets

sensu-database-check

This is a very simple Redis check of connectivity written in Python. To make it a single file I used Pyinstaller.

Why create another Redis check

The current one I found here doesn't want to work so I created my own. Also I wanted to be able to run simple tests written in Python quickly. But I needed those tests to be able to call to external modules so I ended up using Pyinstaller to make the tests executable.

If you want to use this repo as blueprint to build your own checks consider that in the build.sh file I use docker to build executables to the same machine specification of the Sensu alpine image.

To install

sensuctl asset add maikeldotuk/sensu-database-check

Pass the next environment variables in your check config:

REDIS_HOST
REDIS_PORT (if ommited uses default)
REDIS_PASS 

Example configuration

type: CheckConfig
api_version: core/v2
metadata:
  name: check_redis
  namespace: default
spec:
  command: check_redis
  env_vars:
  - REDIS_HOST=YOUR_HOST_IP_OR_DNS_NAME
  - REDIS_PASS=YOUR_REDIS_PASS
  handlers:
  - slack
  interval: 60
  publish: true
  runtime_assets:
  - maikeldotuk/sensu-redis-simple-test
  subscriptions:
  - system
  timeout: 0

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.

×

You must be signed in to report this asset.

Sign In with Github

Download

×

Either download the source code:

Download Source

Or download the asset definition: