Skip to main content

Scanner agent for SnapFS.

Project description

SnapFS Scanner Agent

The SnapFS Scanner Agent runs file system scans on machines that have direct access to storage (local disks, network mounts, etc.).

What it does

  • Runs snapfs scan locally on demand
  • Works with local filesystems and mounted storage
  • Runs continuously in the background
  • Designed for servers, NAS hosts, and storage-adjacent machines

The agent does not:

  • schedule scans itself
  • publish scan results directly
  • require special filesystem access beyond what snapfs needs

Requirements

  • Python 3.8+
  • The snapfs CLI installed and available on PATH
  • Network access

Installation

Using pip

pip install snapfs-agent-scanner snapfs

Run the agent:

snapfs-agent-scanner

With explicit configuration:

snapfs-agent-scanner \
  --gateway https://localhost:8000 \
  --agent-id scanner-01 \
  --scan-root /mnt/data

Docker

docker run --rm \
  -e SNAPFS_AGENT_ID=scanner-01 \
  -e SNAPFS_SCAN_ROOT=/mnt/data \
  -e GATEWAY_WS=ws://gateway:8000 \
  -v /mnt/data:/mnt/data \
  ghcr.io/snapfsio/snapfs-agent-scanner:latest

The container runs the scanner agent continuously and executes scans when requested.

Running as a Systemd Service (Linux)

The agent includes a simple systemd service for Linux hosts.

Install and enable it:

sudo ./systemd/install.sh

To uninstall:

sudo ./systemd/uninstall.sh

Configuration

The agent can be configured using CLI flags or environment variables.

CLI Options

snapfs-agent-scanner [options]

--gateway <url>        Gateway URL (http/https/ws/wss)
--gateway-ws <url>     Explicit WebSocket URL
--ws-path <path>       Gateway path (default: /agents)
--agent-id <id>        Stable identifier for this agent
--scan-root <path>     Filesystem root to scan
--version              Print version and exit

Environment Variables

GATEWAY_WS          Gateway WebSocket URL
GATEWAY_HTTP        Reserved for future use
SNAPFS_AGENT_ID     Agent identifier
SNAPFS_SCAN_ROOT    Filesystem root for scans

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

snapfs_agent_scanner-0.2.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapfs_agent_scanner-0.2.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file snapfs_agent_scanner-0.2.0.tar.gz.

File metadata

  • Download URL: snapfs_agent_scanner-0.2.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for snapfs_agent_scanner-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8ab621e418f7ba480f234031e9fc39e1472ba5a1f2ebef7d43cd0152a0ac948
MD5 2d3e20cac7b83bcefee613bfebfee36b
BLAKE2b-256 b7afbc425811386c812dc394d573abe12b3fe087ac4caef28e3720e8ad2a091a

See more details on using hashes here.

File details

Details for the file snapfs_agent_scanner-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for snapfs_agent_scanner-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8fcf26bc2317ae8b900fd707df29d02b49b78e5e80c6085a22d2707d9e816a8
MD5 f159adc22113c79e690e7d2e8c1e86ec
BLAKE2b-256 35f19e1df05836d4d9f14bd4bf7d65d839d51335c067a89f1b66ada42fb74940

See more details on using hashes here.

Supported by

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