Zum Inhalt

Proxmox VE und Proxmox Backup Server

Der PVE-Host selbst und jede PBS-Instanz werden zuerst wie jeder Debian-Host angebunden (Hosts anbinden). Zusätzlich melden PVE und PBS ihre Aufgaben – Backups, Sync, Verify, Garbage Collection, Prune – per Webhook an QuietBoard. Erfolg ist still, Fehler sind laut.

1. Jobs für die Aufgaben anlegen

In der App: Jobs → + Job anlegen → Vorlage Proxmox VE: Backup-Job (vzdump) bzw. Proxmox Backup Server: Verify, GC, Prune, Sync.

  • Proxmox-Host: ein Name für diese PVE/PBS-Instanz, z. B. pve oder pbs. Er steht später auch in der Webhook-Adresse.
  • Zeitplan: wann der Job in Proxmox startet (Cron, z. B. 0 1 * * *), Darf dauern: wie lange er höchstens braucht.
  • Ereignis: vzdump (PVE-Backup) oder verify, gc, prune, sync (PBS). Optional nur eine bestimmte Job-ID oder einen Datastore.

Nach dem Anlegen zeigt die App die fertig ausgefüllten Werte für den Webhook (Schritt 2) mit Kopieren-Knöpfen.

Alternative: in checks.yaml

checks:
  - name: pve/backup
    tags: { host: pve, typ: backup, prio: kritisch }
    schedule: "45 1 * * *"
    grace: 2h
    match: { source: pve, host: pve, type: vzdump }
Danach docker compose exec status python -m tools.hc_sync. type ist der PVE/PBS-Ereignistyp, optional datastore oder job_id.

2. Webhook in PVE/PBS einrichten

PVE: Datacenter → Notifications, PBS: Configuration → Notifications.

  1. Notification Targets → Add → Webhook, Name quietboard:
  2. Method POST, URL http://<server>:8088/api/ingest/pve?source=pve&host=pve (PBS: source=pbs&host=pbs – host genau wie beim Job angegeben)
  3. Header Content-Type: application/json und Authorization: Bearer {{ secrets.token }}
  4. Secret token = INGEST_TOKEN aus ~/quietboard/.env
  5. Body:
    {"severity":"{{ severity }}","title":{{ json title }},"message":{{ json message }},"fields":{{ json fields }}}
    
  6. Notification Matchers → Add, Target quietboard, ohne Filter.
  7. PBS: pro Datastore unter Options → Notification den Modus „Notification System“ wählen. PVE: im Backup-Job „Notification system“.
  8. Mit Test prüfen: In QuietBoard erscheint unter „Meldungen“ ein Eintrag.

Ein erfolgreicher Lauf pingt den passenden Check; ein Fehler setzt ihn auf rot. Fehler ohne passenden Check werden nie verschluckt: Sie erscheinen als Meldung und lösen eine Benachrichtigung aus.

3. Datastore-Füllstand (optional)

Mit einem Read-only-API-Token (Rolle Audit auf /) zeigt QuietBoard Belegung und laufende Aufgaben der PBS-Datastores. In .env:

PBS_TARGETS=pbs|https://pbs.home.arpa:8007|status@pbs!quietboard|<secret>

Mehrere Instanzen mit ; trennen, danach docker compose up -d.