Metadata-Version: 2.4
Name: check-deb-release
Version: 0.1.2
Summary: Check local debian version against a mirror and warn if a newer release is available.
Author-email: Bona Fide IT GmbH <github@bona-fide.it>, Olaf Rühenbeck <oruehenbeck@bona-fide.it>
License: MIT License
        
        Copyright (c) 2023 Bona Fide IT GmbH
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/BonaFideIT/check_deb_release
Keywords: icinga,nagios,plugin,check_command,debian,release,version
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: apt-repo>=0.5
Requires-Dist: nagiosplugin>=1.4.0
Requires-Dist: natsort>=8.4.0
Requires-Dist: validators>=0.35.0
Dynamic: license-file

# check_deb_release
[![Tests](https://github.com/bonafideit/check_deb_release/actions/workflows/tests.yml/badge.svg)](https://github.com/bonafideit/check_deb_release/actions/workflows/tests.yml)

A Nagios/Icinga plugin to monitor the installed Debian or Ubuntu release against a specified target (e.g., "stable").

## installation

`pip install check-deb-release`

## usage

```
usage: check_deb_release [-h] [--mirror MIRROR] [TARGET]

Nagios plugin to monitor if the currently running release of debian matches the desired target distribution

positional arguments:
  TARGET           Default: "stable", supported: "oldoldstable", "oldstable", "stable", "testing", "experimental"

options:
  -h, --help       show this help message and exit
  --mirror MIRROR  Debian Mirror to use as release reference. Default: https://deb.debian.org/debian/
```

## contributions

Install locally:

* fork
* clone
* create/checkout feature branch
* optional: virtual env
* install uv
* uv sync --dev
* **do work**
* create pull request where all tests pass
* changes will be merged after careful review

Run tests:

`uv run pytest`

Works for:

* debian bullseye
* debian bookworm

Does not currently work:

* debian buster ~ due to broken dependencies for old python version
