From 7d6bec2b4a3d92b18f6ff1637eb0f579de3596c8 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Fri, 24 Apr 2026 09:18:44 +0200 Subject: [PATCH] fix: Proxmox webhook flow liest jetzt body-Feld Proxmox sendet Webhooks im Matrix-Format mit `body` statt `message`. Input-Transform auf `body || message` umgestellt, Titel wird aus erster Zeile von `body` extrahiert wenn kein separates title-Feld. Co-Authored-By: Claude Sonnet 4.6 --- .../proxmox_backup_webhook__flow/flow.yaml | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/f/Proxmox/proxmox_backup_webhook__flow/flow.yaml b/f/Proxmox/proxmox_backup_webhook__flow/flow.yaml index 78e8784..a8b273d 100644 --- a/f/Proxmox/proxmox_backup_webhook__flow/flow.yaml +++ b/f/Proxmox/proxmox_backup_webhook__flow/flow.yaml @@ -13,13 +13,13 @@ value: input_transforms: message: type: javascript - expr: flow_input.message || '' + expr: flow_input.body || flow_input.message || '' severity: type: javascript expr: flow_input.severity || '' title: type: javascript - expr: flow_input.title || '' + expr: flow_input.title || (flow_input.body || '').split('\n')[0].trim() || '' debug_mode: type: javascript expr: flow_input.debug_mode || false @@ -69,18 +69,26 @@ schema: $schema: https://json-schema.org/draft/2020-12/schema type: object properties: + body: + type: string + description: "Proxmox-Webhook Payload (Matrix-Format): Titel + Details + Logs" + default: "vzdump backup status (proxmox.netbird.stines.de): backup successful\n\nDetails\n=======\nVMID Name Status Time Size Filename\n127 OLV-CLOUD01-IP17.2 ok 4s 50 GiB vm/127/2026-04-22T19:43:13Z\n131 OLV-WORDP01-IP17.3 ok 3s 50 GiB vm/131/2026-04-22T19:43:17Z\n132 OLV-SMTP01-IP17.1 ok 5s 50 GiB vm/132/2026-04-22T19:43:20Z\n\nTotal running time: 12s\nTotal size: 150 GiB\n\nLogs\n====\nvzdump 127 131 132 --prune-backups 'keep-all=1' --mode snapshot\n\n127: 2026-04-22 21:43:13 INFO: Starting Backup of VM 127 (qemu)\n127: 2026-04-22 21:43:17 INFO: Finished Backup of VM 127 (00:00:04)\n\n131: 2026-04-22 21:43:17 INFO: Starting Backup of VM 131 (qemu)\n131: 2026-04-22 21:43:20 INFO: Finished Backup of VM 131 (00:00:03)\n\n132: 2026-04-22 21:43:20 INFO: Starting Backup of VM 132 (qemu)\n132: 2026-04-22 21:43:25 INFO: Finished Backup of VM 132 (00:00:05)" + msgtype: + type: string + description: "Matrix-Nachrichtentyp (immer m.text)" + default: "m.text" message: type: string - description: Vollständige Nachricht mit Summary und Logs - default: "Details\n=======\nVMID Name Status Time Size Filename\n127 OLV-CLOUD01-IP17.2 ok 4s 50 GiB vm/127/2026-04-22T19:43:13Z\n131 OLV-WORDP01-IP17.3 ok 3s 50 GiB vm/131/2026-04-22T19:43:17Z\n132 OLV-SMTP01-IP17.1 ok 5s 50 GiB vm/132/2026-04-22T19:43:20Z\n\nTotal running time: 12s\nTotal size: 150 GiB\n\nLogs\n====\nvzdump 127 131 132 --prune-backups 'keep-all=1' --mode snapshot\n\n127: 2026-04-22 21:43:13 INFO: Starting Backup of VM 127 (qemu)\n127: 2026-04-22 21:43:17 INFO: Finished Backup of VM 127 (00:00:04)\n\n131: 2026-04-22 21:43:17 INFO: Starting Backup of VM 131 (qemu)\n131: 2026-04-22 21:43:20 INFO: Finished Backup of VM 131 (00:00:03)\n\n132: 2026-04-22 21:43:20 INFO: Starting Backup of VM 132 (qemu)\n132: 2026-04-22 21:43:25 INFO: Finished Backup of VM 132 (00:00:05)" + description: "Fallback: direktes message-Feld (ältere Proxmox-Versionen)" + default: "" severity: type: string description: Severity-Level (info, warning, error) default: "info" title: type: string - description: Titel der Proxmox-Notification - default: "vzdump backup status (proxmox.netbird.stines.de): backup successful" + description: "Titel (optional, wird sonst aus erster Zeile von body extrahiert)" + default: "" debug_mode: type: boolean description: "Debug-Modus: überspringt DB-Insert und Nextcloud-Nachricht"