Skip to main content

Sentinella logo

Sentinella

System monitoring with terminal and web dashboards

Sentinella is a cross-platform, open-source system monitor written in Python that works on Linux, BSD, macOS, and Windows.


Features ✨

  • 🖥 Interactive TUI Dashboard: A beautiful terminal dashboard powered by Textual. Inspect CPU, memory, disk, network, active processes, users, sensors, and containers. Supports instant runtime theme toggling (t key: dark/light), dynamic process re-sorting (p key), force refresh (r key), and clear visual stale-state indicators during collection hiccups.
  • 🌐 Modern Web Dashboard: A real-time browser interface powered by FastAPI and WebSockets via a high-performance, capped BroadcastHub. Features 100% offline/air-gapped vendorized assets, persistent light/dark themes, dynamic thresholds and process ranking matching agent config, snapshot payload wire trimming (~70% payload reduction), an accessible (ARIA, keyboard focus-trapped) authentication modal (the key is kept for the session only unless you choose to remember it; stored keys are obfuscated, not encrypted), and reconnection backoff with manual retry.
  • 📡 Remote Monitoring Agent: Run Sentinella as a remote server agent (serve mode) and monitor hosts securely via RemoteCollector over HTTP/WebSockets from a centralized Sentinella instance, or fetch console summaries remotely.
  • 🚀 Quick Summary (fetch): A quick, neofetch-style console summary of system hardware, OS, and resource utilization, available locally or queried from a remote agent (sentinella --remote HOST:PORT fetch).
  • 📊 Structured Exports (print): Print snapshots of system metrics to stdout in Text, CSV, or JSON formats with module name validation, ideal for scripting, integrations, or cron jobs.
  • 📦 Container Support: Native monitoring for Docker and LXC containers (memory, CPU, status, and metadata) with streaming bounded output readers to avoid memory exhaustion.
  • 🔒 Security-First: Constant-time API key verification, Host-header allowlisting against DNS rebinding, Origin checks on the live WebSocket, optional HTTPS, API keys from environment variables, security headers (Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy: no-referrer) applied to all HTTP responses, automatic warnings for insecure open network binds across IPv4/IPv6 without authentication, CSV formula-injection sanitization, and permission warnings (chmod 600) for config files holding plaintext credentials.

Quick Start 🚀

Prerequisites

  • Python: 3.11 or higher.
  • Package Manager: uv (recommended) or pip.

Installation

  1. Clone the repository:

    git clone https://github.com/salvatorecorvaglia/sentinella.git
    cd sentinella
    
  2. Sync the workspace (using uv):

    uv sync --all-extras --dev
    
  3. Install the package (using pip):

    pip install -e .
    

🖥 Command Line Usage

Once installed, the sentinella executable will be available on your system path.

# Start the interactive TUI Dashboard (default)
sentinella

# Run the TUI connected to a remote Sentinella agent
sentinella --remote 127.0.0.1:9090

# Print a quick neofetch-style system summary
sentinella fetch

# Fetch a system summary from a remote Sentinella agent
sentinella --remote 127.0.0.1:9090 fetch

# Start the Web Dashboard server (default: port 8080)
sentinella web

# Start the Remote Monitoring Agent server (default: port 9090)
sentinella serve

# Print system stats directly to stdout (JSON format)
sentinella print --format json

# Print specific modules' metrics (e.g. cpu, memory)
sentinella print cpu memory

# Print metrics from a remote Sentinella agent
sentinella --remote 127.0.0.1:9090 print

⌨️ TUI Keyboard Controls

Key Action
q / Ctrl+C Quit Sentinella
t Toggle theme on the fly (Dark ⇄ Light)
p Cycle process sorting order (cpu → memory → pid → name)
r Force immediate metric refresh

Global CLI Options

  • -c PATH, --config PATH: Path to a custom sentinella.toml configuration file.
  • -v, --verbose: Enable verbose debug logging.
  • -r HOST:PORT, --remote HOST:PORT: Connect to a remote Sentinella agent instead of inspecting the local system (applicable to TUI, fetch, and print).

🛠 Configuration

Sentinella can be configured using a sentinella.toml file. The search order for configuration is:

  1. --config / -c CLI flag (explicit path).
  2. ./sentinella.toml (current working directory).
  3. ~/.config/sentinella/sentinella.toml (user profile configuration).
  4. Default built-in values.

A default configuration template is available in sentinella.example.toml.

Configuration Options Reference

[general]
refresh_interval = 2        # Seconds between updates (minimum: 1)
theme = "dark"              # Theme to apply: "dark" or "light"

[modules]
cpu = true                  # Enable/disable specific monitoring modules
memory = true
disk = true
network = true
processes = true
users = true
sensors = true
containers = true

[web]
enabled = false             # Automatically run web server in TUI background
host = "127.0.0.1"          # Host address to bind the web server
port = 8080                 # Port for the web server (1-65535)
api_key = ""                # API key for the dashboard (empty = no authentication)
allowed_hosts = []          # Extra Host names to answer to (see below)
ssl_certfile = ""           # PEM certificate; set with ssl_keyfile to serve HTTPS
ssl_keyfile = ""            # PEM private key

[remote]
enabled = false             # Automatically run remote agent in TUI background
host = "127.0.0.1"          # Host address to bind the agent server
port = 9090                 # Port for the remote agent (1-65535)
api_key = ""                # API key for agent connection security
allowed_hosts = []          # Extra Host names to answer to (see below)
ssl_certfile = ""           # PEM certificate; set with ssl_keyfile to serve HTTPS
ssl_keyfile = ""            # PEM private key
expose_cmdline = false      # Serve process command lines to remote clients

[export]
format = "text"             # Default export format: "text", "csv", or "json"

[processes]
max_display = 25            # Max processes to display in TUI and print output
sort_by = "cpu"             # Sort criteria: "cpu", "memory", "pid", "name"

Contributing 🤝

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Changelog 📜

Detailed release history and version changes can be found in CHANGELOG.md.

Security 🔐

If you discover a security vulnerability, please see our Security Policy.

License 📝

Distributed under the MIT License. See LICENSE for more information.

Author ✍️

Salvatore Corvaglia

Metadata

Release files for sentinella-monitor 1.3.2

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

Source distribution (sdist)

Source distribution for sentinella-monitor 1.3.2
File Size Uploaded Provenance Actions
sentinella_monitor-1.3.2.tar.gz 216.6 kB With provenance Details for sentinella_monitor-1.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sentinella-monitor 1.3.2
File Interpreter ABI Platform Actions
sentinella_monitor-1.3.2-py3-none-any.whl Python 3 none any Details for sentinella_monitor-1.3.2-py3-none-any.whl

Total release size: 409.6 kB

Release files / sentinella_monitor-1.3.2.tar.gz

Download URL sentinella_monitor-1.3.2.tar.gz
Size 216.6 kB
Tags Source
SHA-256 checksum
How to use checksums
942821d622b82bdbc7a1f990fc11829ca80284964da22f2e484c91a0af52d4e5
BLAKE2b-256 checksum
How to use checksums
73aa58161bf21f7dcba74a4d480aef799343901d45cc0cfe493fefaba0f58faa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / sentinella_monitor-1.3.2-py3-none-any.whl

Download URL sentinella_monitor-1.3.2-py3-none-any.whl
Size 193.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
316e3cf6cb5c6f22ba21f50f1916308ec7c33c872db215cf41c21ff317b6f47c
BLAKE2b-256 checksum
How to use checksums
4a972dfb199090050ca879bccfc4f37882ccac4526624c996cbcba1939844d4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for sentinella-monitor 1.3.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sentinella_monitor-1.3.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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