Élenchos: Check nftables
A Élenchos command for checking the number of lines in the ruleset of nftables.
Installation and Configuration
Install Élenchos if not already installed:
cd /opt
mkdir elenchos
cd elenchos
python -m venv .venv
. .venv/bin/activate
pip install elenchos
mkdir bin
ln -s ../.venv/bin/elenchos bin/elenchos
Install the check:nftables plugin:
cd /opt/elenchos
. .venv/bin/activate
pip install elenchos_check_nftables
./bin/elenchos gather-commands
Create a configuration file /etc/nrpe.d/check_nftables.cfg for nrpe:
command[check_nftables]=/opt/elenchos/bin/elenchos check:nftables <arguments>
Possible arguments are:
-w,--warning[=WARNING]The warning level for the number of lines in the ruleset.-c,--critical[=CRITICAL]The critical level for the number of lines in the ruleset.
Allow Élenchos to list the ruleset of nftables by creating the config file /etc/sudoers.d/enlenchos_check_nftables:
Defaults !requiretty
nrpe ALL = (root) NOPASSWD: /usr/bin/nft list ruleset
Finally, restart the nrpe daemon:
systemctl reload nrpe
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for elenchos_check_nftables 1.0.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 | |
|---|---|---|---|
| elenchos_check_nftables-1.0.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elenchos_check_nftables-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / elenchos_check_nftables-1.0.1.tar.gz
| Download URL | elenchos_check_nftables-1.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9536c98923b9e6df2570bc5227490a3bc66d6241a7c747daaeb375ebfd015fb
|
|
BLAKE2b-256 checksum How to use checksums |
e16e4318077200760047fda1ec334c3881fe51855789f4e7fad90a4779c5701d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.12.13 Linux/6.19.12-200.fc43.x86_64
|
Release files / elenchos_check_nftables-1.0.1-py3-none-any.whl
| Download URL | elenchos_check_nftables-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a696fca78edad3b94fd5ff1767852e242aed6ea136fac28da2c2de5730cf3205
|
|
BLAKE2b-256 checksum How to use checksums |
57a120c0c6a7fc6889e082e65959c55b4fc02ae71d3531bf6a685986d13888ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.12.13 Linux/6.19.12-200.fc43.x86_64
|