Add `enodia-sentinel status [--json]` — a local health and alert summary: daemon running state, heartbeat freshness, per-severity alert counts, last alert time, and eBPF state. Reuses web.daemon_status (the same data behind /api/status), so the CLI and dashboard never diverge. Exit code reflects health (0 = running and fresh, 1 = down or stale), so it doubles as a cron/monitoring probe. Three CLI tests drive it against a temp log_dir; no daemon or root needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_detectors.py | ||
| test_exec_rules.py | ||
| test_fim.py | ||
| test_netutil.py | ||
| test_notify.py | ||
| test_posture.py | ||
| test_rootcheck.py | ||
| test_status.py | ||
| test_tamper.py | ||
| test_triage.py | ||
| test_web.py | ||