Skip to main content

smalk_disk_check

smalk implementation for disk checking and monitoring.

Installation

Install packages:

sudo apt update && sudo apt install util-linux mdadm smartmontools  # Debian-like
# or
sudo pacman -Sy util-linux mdadm smartmontools  # Arch

Install form pip:

python3 -m pip install --upgrade pip
pip3 install smalk_disk_check

Configuration and running

Copy settings_template.yaml as settings.yaml, change it as you need and run (read more about keys):

smalk_disk_check /path/to/settings.yaml

Run it with startup

Create script smalk_disk_check.sh (as root):

#!/bin/bash
SCRIPT_DIR_PATH=$(dirname "$0")
VENV_PATH="$SCRIPT_DIR_PATH/venv"

if [ ! -d "$VENV_PATH" ]; then
    python3 -m venv "$VENV_PATH"

    . "$VENV_PATH/bin/activate"

    pip3 install --upgrade pip

    pip3 install smalk_disk_check
else
    . "$VENV_PATH/bin/activate"
fi

smalk_disk_check /path/to/settings.yaml

Then do it executable and set up crontab.

sudo chmod u+x /path/to/smalk_disk_check.sh

sudo crontab -e  # sudo pacman -S cronie or sudo apt install cronie 
                    # -> sudo systemctl start cronie && sudo systemctl enable cronie

# add to the end:
@reboot sleep 30 && /path/to/smalk_disk_check.sh

And reboot to test. Do not forget change app.interactive to False in /path/to/settings.yaml.

Or do it as systemd service.

Metadata

Release files for smalk-disk-check 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smalk-disk-check 0.2.1
File Size Uploaded Provenance Actions
smalk_disk_check-0.2.1.tar.gz 12.8 kB Without provenance Details for smalk_disk_check-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smalk-disk-check 0.2.1
File Interpreter ABI Platform Actions
smalk_disk_check-0.2.1-py3-none-any.whl Python 3 none any Details for smalk_disk_check-0.2.1-py3-none-any.whl

Total release size: 27.9 kB

Release files / smalk_disk_check-0.2.1.tar.gz

Download URL smalk_disk_check-0.2.1.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0280a66b33d6d4096e94618ffbbaf78f3775b80872a575f6e1837770068678cd
BLAKE2b-256 checksum
How to use checksums
6121a562f9da44c74669deb6b891339f79a125645545b73df34b245aa5f7a449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / smalk_disk_check-0.2.1-py3-none-any.whl

Download URL smalk_disk_check-0.2.1-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc2ea68d889c90a5329114e90468decaf1cd6ea9fe5eb2deb52b9513970ab7d5
BLAKE2b-256 checksum
How to use checksums
b0601f09d7b3ffd35333edc25a26b3b534304df8c7e09a00a0a629aab4da651b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Security for smalk-disk-check 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page