monitoring: koopa login-health timer snapshot on SSH login
This commit is contained in:
parent
dc94b30fed
commit
e4dc9abac5
6 changed files with 739 additions and 0 deletions
18
configs/systemd/user/koopa-login-health.service
Normal file
18
configs/systemd/user/koopa-login-health.service
Normal 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
|
||||
13
configs/systemd/user/koopa-login-health.timer
Normal file
13
configs/systemd/user/koopa-login-health.timer
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue