homelab/k3s/health/homelab-health.service
Samantha Atkins 58bfd422d4 Add homelab internal health checker
Python checker runs on pve-control via systemd timer every 10 min,
publishes issues to NATS subject homelab_health_issue. Checks NATS,
Postgres, MariaDB, Ghost blogs, DB dependents, standalone services,
and every NodePort. Silent when healthy.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-20 15:48:07 -04:00

14 lines
481 B
Desktop File

[Unit]
Description=Homelab internal health checks
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
User=samantha
WorkingDirectory=/home/samantha/homelab-health
Environment=KUBECONFIG=/home/samantha/.kube/config
Environment=PATH=/usr/local/bin:/usr/bin:/bin
ExecStart=/home/samantha/homelab-health/venv/bin/python /home/samantha/homelab-health/checker.py --config /home/samantha/homelab-health/checks.json
StandardOutput=journal
StandardError=journal