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/
Release files for sol1-monitoring-plugins-lib 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sol1-monitoring-plugins-lib-1.1.1.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sol1_monitoring_plugins_lib-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / sol1-monitoring-plugins-lib-1.1.1.tar.gz
| Download URL | sol1-monitoring-plugins-lib-1.1.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
832ca6cd467255af6f5b5855c0dddb02fb0eccc8c189afd7556fc5880b7f21d4
|
|
BLAKE2b-256 checksum How to use checksums |
9ee8e3c078141599ad6a42bdca08ba29ae841ac12690a418d83e868413d93c73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / sol1_monitoring_plugins_lib-1.1.1-py3-none-any.whl
| Download URL | sol1_monitoring_plugins_lib-1.1.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e97074eb6023108d3ca630bfcdd223fb4fa8164c94bae710a972e5beb655bf3e
|
|
BLAKE2b-256 checksum How to use checksums |
18a25741a7a234593ba81182f9e87d6e77c58b0e0933fb17d23c0772513b3f3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|