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 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/
Deploy
python3 -m twine upload dist/*
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
Built Distribution
Hashes for sol1-monitoring-plugins-lib-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23fe7643052c890e8de4ae268087222fc17e80259b213b0f55b2572b4ddc91ca |
|
MD5 | 7586a51405dab74e93280414228d21ea |
|
BLAKE2b-256 | b530e88f5f5c7b0d9cb2db3b015f64e3c00030d7b2646042712c23075a6ccba4 |
Hashes for sol1_monitoring_plugins_lib-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d9a3ac9ce068d7ae68739b37b361197a33fc452688f83e6a83144e82c76ec64 |
|
MD5 | af357550a582e762535b9f1f97790866 |
|
BLAKE2b-256 | ec55f806ba2a5ef6d79469af357b8699b80da3ba0287b38808392660d6bedc3f |