Skip to main content

Daemon that runs and reports health checks

Project description

Sauna is a small daemon designed to run health checks and send the results to a monitoring server. It is able to report to Nagios and Shinken out of the box.

It is made to be resource efficient (it avoids forking at all costs), simple to install and low maintenance.

Installation

A Debian package compatible with wheezy and jessie is available. Grab the latest release on Github and install it:

dkpg -i sauna_<version>_all.deb || apt-get install -f

Alternatively, Sauna is available on PyPI, you can install it with pip:

pip install sauna

Usage

Using Sauna you will manipulate two entities: plugins and consumers.

Plugins are optional modules that provide a set of checks. There is for instance the Load plugin which provides checks about load average or the Redis plugin which monitors the status of a Redis database. You only opt-in for the plugins that make sense for your setup.

Consumers on the other hand provide a way to send the results of checks generated by plugins to your monitoring server. There is the NSCA consumer that sends data to a Nagios compatible server or the HTTP consumer to send the check results to an API like livestatus.

Start by generating a sample configuration file sauna-sample.yml:

sauna sample

Edit the sample configuration to fit your system, pick the plugins that you want and choose a consumer. When you are done move the file as sauna.yml.

Start sauna:

sauna

You can easily run it as a daemon using systemd or supervisor.

Contributing

Sauna is written in Python 3. Adding a check plugin or a consumer should be straightforward. Clone the repository and install it in development mode in a virtualenv:

pip install -e .

The code base follows pep8, test the code for compliance with:

pep8 sauna test

Run the test suite:

nosetests

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sauna-0.0.3.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sauna-0.0.3-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file sauna-0.0.3.tar.gz.

File metadata

  • Download URL: sauna-0.0.3.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sauna-0.0.3.tar.gz
Algorithm Hash digest
SHA256 19ac89175baf8855d3c2ea481e03c326df27d678ed2782926fe80750280c0cc6
MD5 50dcc88d8cf74095bbdb29de5764f94c
BLAKE2b-256 5c2c2e36b772ca4bea80fabf3a82c10e26d9d6d6a5a3b146e0bb10e0b5e4e913

See more details on using hashes here.

File details

Details for the file sauna-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sauna-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 378cb39eadb251be1fe3b8f10fc4bce017ebcc1e435c332242498e1bfc99375b
MD5 cdc25157ea47664d17cbaaf89178b778
BLAKE2b-256 b540b5dde664fcd1f92617350b6631f29b3a4f912a6dc2204533032159064daa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page