monitoring: koopa login-health timer snapshot on SSH login

This commit is contained in:
Hernâni Marques 2026-08-06 17:12:00 +02:00
parent dc94b30fed
commit e4dc9abac5
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
6 changed files with 739 additions and 0 deletions

View file

@ -0,0 +1,18 @@
[Unit]
Description=Collect koopa login-health snapshot (read-only probes)
Documentation=file:%h/src/koopa/koopa-admin-log/scripts/login-health/README.md
# Best-effort: failures must not cascade
After=default.target
[Service]
Type=oneshot
# Snapshot only — never block login; login only cats ~/.local/state/…
ExecStart=%h/.local/bin/koopa-login-health collect
# Treat overall FAIL as success for the timer (we still wrote a snapshot)
SuccessExitStatus=0 1
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=6
[Install]
WantedBy=default.target

View file

@ -0,0 +1,13 @@
[Unit]
Description=Timer · koopa login-health snapshot (every 5 min)
Documentation=file:%h/src/koopa/koopa-admin-log/scripts/login-health/README.md
[Timer]
OnBootSec=2min
OnUnitActiveSec=5min
AccuracySec=30s
Persistent=true
Unit=koopa-login-health.service
[Install]
WantedBy=timers.target