Skip to main content

Send fail2ban jail status updates to Slack.

Project description

Unit Tests codecov downloads

fail2slack lets you send fail2ban jail status updates to Slack with ease.

Compatibility

Python Version Module Version

fail2slack is developed for and tested with recent versions of Python, including:

  • 3.7, 3.7.7, 3.8, 3.9, 3.10

Browse our build history at GitHub.

Installation

pip install fail2slack

Install fail2slack using the Python package installer.

Dependencies for using fail2slack are available in the requirements file.

Usage

usage: __main__.py [-h] [-w WEBHOOK] [-d DELIVERY] [-j JAILS [JAILS ...]] [-i IDENTIFIER]

options:
  -h, --help            show this help message and exit
  -w WEBHOOK, --webhook WEBHOOK
                        Slack webhook URL. Required if delivery method is 1.
  -d DELIVERY, --delivery DELIVERY
                        Delivery method: 0 = print, 1 = Slack webhook.
  -j JAILS [JAILS ...], --jails JAILS [JAILS ...]
                        Jails to include in status report. Required.
  -i IDENTIFIER, --identifier IDENTIFIER
                        Update identifier. STRING of identifier to use. Default is hostname.

Result

Tests

For instructions on running test check out the README.

Contributing

Feedback, bug reports, feature requests, and pull requests are welcome!

If you'd like to contribute to fail2slack please reference our code of conduct and contributing guides.

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

fail2slack-0.4.0.tar.gz (13.1 kB view details)

Uploaded Source

File details

Details for the file fail2slack-0.4.0.tar.gz.

File metadata

  • Download URL: fail2slack-0.4.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for fail2slack-0.4.0.tar.gz
Algorithm Hash digest
SHA256 74bb62a11dede9ddac0838bf2ba4a5188a32966c694b702e2e559238def9c00e
MD5 c6ae59be0254ab2e24a7b81b0d6b8908
BLAKE2b-256 9a82574ba088f310d397d30c77c71a4fc87832570b643aa05b880abf8d8e9fc6

See more details on using hashes here.

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