Skip to main content

Simple Library to manage the output for Nagios and Icinga Monitoring Plugins

Project description

Sol1 Monitoring Plugins Library

Sol1 Monitoring Plugins Library are tools to assist in the creation of monitoring checks for Icinga2 and Nagios.

MonitoringPlugin

from sol1_monitoring_plugins_lib import MonitoringPlugin

The MonitoringPlugin class manages the state, output message and performance data of your check as well as returning this data and exiting the script.

It has been designed so you can add multiple tests and the class will intelligently manage the state and output for you.

Documentation You can find documentation in the docs folder. Code usage examples can be found in the examples folder.

Maturity: Stable.

Logging

from sol1_monitoring_plugins_lib import initLogging, initLoggingArgparse, DEFAULT_LOG_LEVELS

The Logging functions setup loguru based logging for monitoring plugins with settings that allow for simple debugging during development and a short history for production usage by default.

Documentation You can find documentation in the docs folder. Code usage examples can be found in the examples folder.

Maturity: Stable.

Development

Contributions are welcome, changes need to be backwards compatible.

Setup

python3 -m pip install --upgrade pip setuptools wheel twine pytest
python3 -m pip install -r requirements.txt

Build

python3 .\setup.py sdist bdist_wheel

Tests

Install build package to current directory

python3 -m pip install -e .

Run tests

python3 -m pytest tests/

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

sol1-monitoring-plugins-lib-1.1.1.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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