Skip to main content

Send fail2ban jail status updates to Slack.

Project description

Unit Tests 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.9, 3.10, 3.11, 3.12, 3.13

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.5.0.tar.gz (13.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: fail2slack-0.5.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fail2slack-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ac71aaf8df404006bfffd1a5e60e82aeb9a12a4e5f797a54f08cb19ad5ebe5ae
MD5 5d9eab873a8d1b399cf5bf9fe69e9542
BLAKE2b-256 62acf5a0265e387444e4f21b078ead85ee94e203affecf51f735a853f6130ba2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page