Metadata-Version: 2.3
Name: check_zfs_snapshot
Version: 2.0.0
Summary: A monitoring plugin that checks how long ago the last snapshot of ZFS datasets was created.
Author: Josef Friedrich
Author-email: Josef Friedrich <josef@friedrich.rocks>
License: MIT
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: nagiosplugin>=1,<2
Requires-Python: >=3.10, <4
Project-URL: Repository, https://github.com/Josef-Friedrich/check_zfs_snapshot
Description-Content-Type: text/x-rst

.. image:: http://img.shields.io/pypi/v/check-zfs-snapshot.svg
    :target: https://pypi.org/project/check-zfs-snapshot
    :alt: This package on the Python Package Index

.. image:: https://github.com/Josef-Friedrich/check_zfs_snapshot/actions/workflows/tests.yml/badge.svg
    :target: https://github.com/Josef-Friedrich/check_zfs_snapshot/actions/workflows/tests.yml
    :alt: Tests

Command line interface
----------------------

:: 

    check_zfs_snapshot v1.2
    Copyright (c) 2016-2026 Josef Friedrich <josef@friedrich.rocks>

    Monitoring plugin to check how long ago the last snapshot of a ZFS dataset was created.

    Usage: check_zfs_snapshot <options>

    Options:
     -c, --critical=OPT_CRITICAL
        Interval in seconds for critical state.
     -d, --dataset=OPT_DATASET
        The ZFS dataset to check.
     -h, --help
        Show this help.
     -s, --short-description
        Show a short description of the command.
     -v, --version
        Show the version number.
     -w, --warning=OPT_WARNING
        Interval in seconds for warning state. Must be lower than -c

    Performance data:
     - last_ago
        Time interval in seconds for last snapshot.
     - warning
        Interval in seconds.
     - critical
        Interval in seconds.
     - snapshot_count
        How many snapshot exists in the given dataset and all child
        datasets exists.

Project pages
-------------

* https://github.com/Josef-Friedrich/check_zfs_snapshot
* https://exchange.icinga.com/joseffriedrich/check_zfs_snapshot
* https://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/check_zfs_snapshot/details
