Notifications in Proxmox 8.1

David G.

New Member
Aug 16, 2023
20
2
3
Hallo an euch Proxmoxnutzer,

Irgendwie bin ich zu doof die neuen Notifications die mit Proxmox 8.1 gekommen sind einzurichten.

Hab mich mal an was ganz einfachem versucht.
Das eingerichtete Notification Target funktioniert, doch irgendwie wird vom Match nichts versendet.

Zum Test wollte ich einfach mal von allem eine Meldung bekommen.
Habe einfach mal manuell ein Backup angestoßen und eine VM neu gestartet, Dort habe ich keine Mail bekommen.
Auch das automatische Backup gestern Abend hat mir nichts gesendet.

1.jpg

2.jpg

3.jpg

5.jpg

6.jpg
 
Last edited:
Hallo,
kannst du den Task Log von dem Backup Job posten? Und die /etc/pve/jobs.cfg, /etc/vzdump.cfg und /etc/pve/notifications.cfg? (eventuelle sensible Informationen bitte zensieren)
 
Hallo,
kannst du den Task Log von dem Backup Job posten? Und die /etc/pve/jobs.cfg, /etc/vzdump.cfg und /etc/pve/notifications.cfg? (eventuelle sensible Informationen bitte zensieren)
Meinst du das Log?

Code:
INFO: starting new backup job: vzdump 101 100 102 105 104 107 --storage Tuxis_Backup --mailnotification always --prune-backups 'keep-last=30' --compress zstd --quiet 1 --mode snapshot --mailto david@graef.email --notes-template '{{guestname}}'
INFO: Starting Backup of VM 100 (qemu)
INFO: Backup started at 2023-11-28 21:00:05
INFO: status = running
INFO: VM Name: mariadb
INFO: include disk 'scsi0' 'tank:vm-100-disk-0' 32G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating Proxmox Backup Server archive 'vm/100/2023-11-28T20:00:05Z'
INFO: enabling encryption
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
INFO: started backup task 'ed770b13-bcbf-4e34-8f81-43b084ef32a3'
INFO: resuming VM again
INFO: scsi0: dirty-bitmap status: OK (88.0 MiB of 32.0 GiB dirty)
INFO: using fast incremental mode (dirty-bitmap), 88.0 MiB dirty of 32.0 GiB total
INFO: 100% (88.0 MiB of 88.0 MiB) in 3s, read: 29.3 MiB/s, write: 28.0 MiB/s
INFO: Waiting for server to finish backup validation...
INFO: backup was done incrementally, reused 31.92 GiB (99%)
INFO: transferred 88.00 MiB in 4 seconds (22.0 MiB/s)
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=30
INFO: running 'proxmox-backup-client prune' for 'vm/100'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: Finished Backup of VM 100 (00:00:05)
INFO: Backup finished at 2023-11-28 21:00:10
INFO: Starting Backup of VM 101 (qemu)
INFO: Backup started at 2023-11-28 21:00:10
INFO: status = running
INFO: VM Name: iobroker
INFO: include disk 'scsi0' 'tank:vm-101-disk-0' 32G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating Proxmox Backup Server archive 'vm/101/2023-11-28T20:00:10Z'
INFO: enabling encryption
INFO: started backup task '2d93dbe4-aff6-4970-a6f2-51e3b3ffdaae'
INFO: resuming VM again
INFO: scsi0: dirty-bitmap status: OK (2.1 GiB of 32.0 GiB dirty)
INFO: using fast incremental mode (dirty-bitmap), 2.1 GiB dirty of 32.0 GiB total
INFO:   5% (128.0 MiB of 2.1 GiB) in 3s, read: 42.7 MiB/s, write: 38.7 MiB/s
INFO:   7% (168.0 MiB of 2.1 GiB) in 6s, read: 13.3 MiB/s, write: 13.3 MiB/s
INFO:   9% (208.0 MiB of 2.1 GiB) in 10s, read: 10.0 MiB/s, write: 10.0 MiB/s
INFO:  10% (236.0 MiB of 2.1 GiB) in 16s, read: 4.7 MiB/s, write: 4.7 MiB/s
INFO:  13% (300.0 MiB of 2.1 GiB) in 23s, read: 9.1 MiB/s, write: 9.1 MiB/s
INFO:  16% (352.0 MiB of 2.1 GiB) in 33s, read: 5.2 MiB/s, write: 3.2 MiB/s
INFO:  18% (396.0 MiB of 2.1 GiB) in 36s, read: 14.7 MiB/s, write: 5.3 MiB/s
INFO:  20% (452.0 MiB of 2.1 GiB) in 39s, read: 18.7 MiB/s, write: 17.3 MiB/s
INFO:  24% (536.0 MiB of 2.1 GiB) in 42s, read: 28.0 MiB/s, write: 18.7 MiB/s
INFO:  27% (604.0 MiB of 2.1 GiB) in 45s, read: 22.7 MiB/s, write: 14.7 MiB/s
INFO:  30% (668.0 MiB of 2.1 GiB) in 48s, read: 21.3 MiB/s, write: 21.3 MiB/s
INFO:  33% (732.0 MiB of 2.1 GiB) in 51s, read: 21.3 MiB/s, write: 17.3 MiB/s
INFO:  34% (764.0 MiB of 2.1 GiB) in 54s, read: 10.7 MiB/s, write: 5.3 MiB/s
INFO:  37% (828.0 MiB of 2.1 GiB) in 57s, read: 21.3 MiB/s, write: 12.0 MiB/s
INFO:  40% (892.0 MiB of 2.1 GiB) in 1m, read: 21.3 MiB/s, write: 12.0 MiB/s
INFO:  41% (920.0 MiB of 2.1 GiB) in 1m 3s, read: 9.3 MiB/s, write: 6.7 MiB/s
INFO:  45% (996.0 MiB of 2.1 GiB) in 1m 6s, read: 25.3 MiB/s, write: 24.0 MiB/s
INFO:  46% (1016.0 MiB of 2.1 GiB) in 1m 9s, read: 6.7 MiB/s, write: 6.7 MiB/s
INFO:  49% (1.1 GiB of 2.1 GiB) in 1m 12s, read: 24.0 MiB/s, write: 22.7 MiB/s
INFO:  52% (1.1 GiB of 2.1 GiB) in 1m 15s, read: 22.7 MiB/s, write: 12.0 MiB/s
INFO:  54% (1.2 GiB of 2.1 GiB) in 1m 19s, read: 11.0 MiB/s, write: 5.0 MiB/s
INFO:  58% (1.2 GiB of 2.1 GiB) in 1m 22s, read: 25.3 MiB/s, write: 14.7 MiB/s
INFO:  61% (1.3 GiB of 2.1 GiB) in 1m 25s, read: 28.0 MiB/s, write: 24.0 MiB/s
INFO:  64% (1.4 GiB of 2.1 GiB) in 1m 28s, read: 22.7 MiB/s, write: 13.3 MiB/s
INFO:  65% (1.4 GiB of 2.1 GiB) in 1m 31s, read: 5.3 MiB/s, write: 4.0 MiB/s
INFO:  69% (1.5 GiB of 2.1 GiB) in 1m 34s, read: 29.3 MiB/s, write: 17.3 MiB/s
INFO:  77% (1.7 GiB of 2.1 GiB) in 1m 37s, read: 54.7 MiB/s, write: 54.7 MiB/s
INFO:  81% (1.8 GiB of 2.1 GiB) in 1m 40s, read: 33.3 MiB/s, write: 22.7 MiB/s
INFO:  84% (1.8 GiB of 2.1 GiB) in 1m 43s, read: 21.3 MiB/s, write: 17.3 MiB/s
INFO:  85% (1.8 GiB of 2.1 GiB) in 1m 46s, read: 5.3 MiB/s, write: 5.3 MiB/s
INFO:  86% (1.9 GiB of 2.1 GiB) in 1m 51s, read: 4.8 MiB/s, write: 4.8 MiB/s
INFO:  88% (1.9 GiB of 2.1 GiB) in 1m 54s, read: 17.3 MiB/s, write: 17.3 MiB/s
INFO:  92% (2.0 GiB of 2.1 GiB) in 1m 57s, read: 29.3 MiB/s, write: 18.7 MiB/s
INFO:  95% (2.1 GiB of 2.1 GiB) in 2m, read: 20.0 MiB/s, write: 12.0 MiB/s
INFO:  98% (2.1 GiB of 2.1 GiB) in 2m 3s, read: 22.7 MiB/s, write: 20.0 MiB/s
INFO: 100% (2.1 GiB of 2.1 GiB) in 2m 6s, read: 10.7 MiB/s, write: 8.0 MiB/s
INFO: backup was done incrementally, reused 30.34 GiB (94%)
INFO: transferred 2.15 GiB in 136 seconds (16.2 MiB/s)
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=30
INFO: running 'proxmox-backup-client prune' for 'vm/101'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: Finished Backup of VM 101 (00:02:17)
INFO: Backup finished at 2023-11-28 21:02:27
INFO: Starting Backup of VM 102 (lxc)
INFO: Backup started at 2023-11-28 21:02:28
INFO: status = running
INFO: CT Name: wireguard
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
INFO: creating Proxmox Backup Server archive 'ct/102/2023-11-28T20:02:28Z'
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=encrypt --keyfd=11 pct.conf:/var/tmp/vzdumptmp499130_102/etc/vzdump/pct.conf root.pxar:/mnt/vzsnap0 --include-dev /mnt/vzsnap0/./ --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 102 --backup-time 1701201748 --repository DB1777@pbs@pbs001.tuxis.nl:DB1777_NUC_Backup
INFO: Starting backup: ct/102/2023-11-28T20:02:28Z
INFO: Client name: pve
INFO: Starting backup protocol: Tue Nov 28 21:02:28 2023
INFO: Using encryption key from file descriptor..
INFO: Encryption key fingerprint: 22:02:14:a6:0d:1a:1b:5e
INFO: Downloading previous manifest (Tue Nov 28 09:55:41 2023)
INFO: Upload config file '/var/tmp/vzdumptmp499130_102/etc/vzdump/pct.conf' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as pct.conf.blob
INFO: Upload directory '/mnt/vzsnap0' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as root.pxar.didx
INFO: root.pxar: had to backup 202.532 MiB of 3.816 GiB (compressed 24.874 MiB) in 7.89s
INFO: root.pxar: average backup speed: 25.68 MiB/s
INFO: root.pxar: backup was done incrementally, reused 3.618 GiB (94.8%)
INFO: Uploaded backup catalog (453.78 KiB)
INFO: Duration: 8.82s
INFO: End Time: Tue Nov 28 21:02:37 2023
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=30
INFO: running 'proxmox-backup-client prune' for 'ct/102'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: cleanup temporary 'vzdump' snapshot
INFO: Finished Backup of VM 102 (00:00:09)
INFO: Backup finished at 2023-11-28 21:02:37
INFO: Starting Backup of VM 104 (lxc)
INFO: Backup started at 2023-11-28 21:02:38
INFO: status = running
INFO: CT Name: adguard
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
INFO: creating Proxmox Backup Server archive 'ct/104/2023-11-28T20:02:38Z'
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=encrypt --keyfd=11 pct.conf:/var/tmp/vzdumptmp499130_104/etc/vzdump/pct.conf root.pxar:/mnt/vzsnap0 --include-dev /mnt/vzsnap0/./ --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 104 --backup-time 1701201758 --repository DB1777@pbs@pbs001.tuxis.nl:DB1777_NUC_Backup
INFO: Starting backup: ct/104/2023-11-28T20:02:38Z
INFO: Client name: pve
INFO: Starting backup protocol: Tue Nov 28 21:02:38 2023
INFO: Using encryption key from file descriptor..
INFO: Encryption key fingerprint: 22:02:14:a6:0d:1a:1b:5e
INFO: Downloading previous manifest (Tue Nov 28 09:55:56 2023)
INFO: Upload config file '/var/tmp/vzdumptmp499130_104/etc/vzdump/pct.conf' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as pct.conf.blob
INFO: Upload directory '/mnt/vzsnap0' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as root.pxar.didx
INFO: root.pxar: had to backup 40.791 MiB of 1.871 GiB (compressed 3.999 MiB) in 4.11s
INFO: root.pxar: average backup speed: 9.914 MiB/s
INFO: root.pxar: backup was done incrementally, reused 1.831 GiB (97.9%)
INFO: Uploaded backup catalog (429.411 KiB)
INFO: Duration: 5.24s
INFO: End Time: Tue Nov 28 21:02:43 2023
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=30
INFO: running 'proxmox-backup-client prune' for 'ct/104'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: cleanup temporary 'vzdump' snapshot
INFO: Finished Backup of VM 104 (00:00:06)
INFO: Backup finished at 2023-11-28 21:02:44
INFO: Starting Backup of VM 105 (lxc)
INFO: Backup started at 2023-11-28 21:02:44
INFO: status = running
INFO: CT Name: emby
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
INFO: creating Proxmox Backup Server archive 'ct/105/2023-11-28T20:02:44Z'
INFO: run: /usr/bin/proxmox-backup-client backup --crypt-mode=encrypt --keyfd=11 pct.conf:/var/tmp/vzdumptmp499130_105/etc/vzdump/pct.conf root.pxar:/mnt/vzsnap0 --include-dev /mnt/vzsnap0/./ --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 105 --backup-time 1701201764 --repository DB1777@pbs@pbs001.tuxis.nl:DB1777_NUC_Backup
INFO: Starting backup: ct/105/2023-11-28T20:02:44Z
INFO: Client name: pve
INFO: Starting backup protocol: Tue Nov 28 21:02:45 2023
INFO: Using encryption key from file descriptor..
INFO: Encryption key fingerprint: 22:02:14:a6:0d:1a:1b:5e
INFO: Downloading previous manifest (Tue Nov 28 09:56:03 2023)
INFO: Upload config file '/var/tmp/vzdumptmp499130_105/etc/vzdump/pct.conf' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as pct.conf.blob
INFO: Upload directory '/mnt/vzsnap0' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as root.pxar.didx
INFO: root.pxar: had to backup 46.79 MiB of 2.902 GiB (compressed 20.033 MiB) in 7.31s
INFO: root.pxar: average backup speed: 6.404 MiB/s
INFO: root.pxar: backup was done incrementally, reused 2.856 GiB (98.4%)
INFO: Uploaded backup catalog (969.719 KiB)
INFO: Duration: 8.44s
INFO: End Time: Tue Nov 28 21:02:53 2023
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=30
INFO: running 'proxmox-backup-client prune' for 'ct/105'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: cleanup temporary 'vzdump' snapshot
INFO: Finished Backup of VM 105 (00:00:11)
INFO: Backup finished at 2023-11-28 21:02:55
INFO: Starting Backup of VM 107 (lxc)
INFO: Backup started at 2023-11-28 21:02:55
INFO: status = running
INFO: CT Name: tasmoadmin
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
INFO: creating Proxmox Backup Server archive 'ct/107/2023-11-28T20:02:55Z'
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=encrypt --keyfd=11 pct.conf:/var/tmp/vzdumptmp499130_107/etc/vzdump/pct.conf root.pxar:/mnt/vzsnap0 --include-dev /mnt/vzsnap0/./ --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 107 --backup-time 1701201775 --repository DB1777@pbs@pbs001.tuxis.nl:DB1777_NUC_Backup
INFO: Starting backup: ct/107/2023-11-28T20:02:55Z
INFO: Client name: pve
INFO: Starting backup protocol: Tue Nov 28 21:02:55 2023
INFO: Using encryption key from file descriptor..
INFO: Encryption key fingerprint: 22:02:14:a6:0d:1a:1b:5e
INFO: Downloading previous manifest (Tue Nov 28 09:56:16 2023)
INFO: Upload config file '/var/tmp/vzdumptmp499130_107/etc/vzdump/pct.conf' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as pct.conf.blob
INFO: Upload directory '/mnt/vzsnap0' to 'DB1777@pbs@pbs001.tuxis.nl:8007:DB1777_NUC_Backup' as root.pxar.didx
INFO: root.pxar: had to backup 23.317 MiB of 806.586 MiB (compressed 3.385 MiB) in 1.91s
INFO: root.pxar: average backup speed: 12.203 MiB/s
INFO: root.pxar: backup was done incrementally, reused 783.269 MiB (97.1%)
INFO: Uploaded backup catalog (634.733 KiB)
INFO: Duration: 2.34s
INFO: End Time: Tue Nov 28 21:02:57 2023
INFO: adding notes to backup
INFO: prune older backups with retention: keep-last=30
INFO: running 'proxmox-backup-client prune' for 'ct/107'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: cleanup temporary 'vzdump' snapshot
INFO: Finished Backup of VM 107 (00:00:03)
INFO: Backup finished at 2023-11-28 21:02:58
INFO: Backup job finished successfully
INFO: notified via target `<xxx@xxx.de>`
TASK OK

Die Mail kommt zumindest vor.

Und der Inhalt der Dateien:

Code:
vzdump: backup-1e16dc8e-e9e5
    schedule 21:00
    compress zstd
    enabled 1
    mailnotification always
    mailto xxx@xxx.de
    mode snapshot
    notes-template {{guestname}}
    prune-backups keep-last=30
    storage Tuxis_Backup
    vmid 101,100,102,105,104,107

Code:
matcher: default-matcher
    comment Route all notifications to mail-to-root
    mode all
    target mail-to-root

sendmail: mail-to-root
    comment Send mails to root@pam's email address
    mailto-user root@pam

smtp: Proxmox_Mail
    from-address xxx@xxx.de
    mailto-user root@pam
    mode tls
    server smtp.artfiles.de
    username xxx@xxx.de

matcher: Meldung_alle_VMs
    match-severity info,notice,warning,error,unknown
    mode all
    target Proxmox_Mail

Code:
# vzdump default settings

#tmpdir: DIR
#dumpdir: DIR
#storage: STORAGE_ID
#mode: snapshot|suspend|stop
#bwlimit: KBPS
#performance: [max-workers=N][,pbs-entries-max=N]
#ionice: PRI
#lockwait: MINUTES
#stopwait: MINUTES
#stdexcludes: BOOLEAN
#mailto: ADDRESSLIST
#prune-backups: keep-INTERVAL=N[,...]
#script: FILENAME
#exclude-path: PATHLIST
#pigz: N
#notes-template: {{guestname}}
 
Last edited:
Beim den Settings des Backup-Job musst du entweder 'Notification mode' auf 'Notification system' setzen, oder aber die E-Mail addresse rausnehmen (der default-wert für notification mode ist auto - da wird eine mail über das 'alte' System gesendet wenn eine Adresse angegeben ist, oder über das neue Notification System wenn nicht)
 
Habe grad nochmal geschaut.
Die Mail von Proxmox ist jenseits von Gut und Böse was die Wertung beim Spam angeht.

Wurde vom Server gelöscht.
Nachdem ich den Spamfilter deaktiviert habe, ist die Mail angekommen.
Kommt nur durch, wenn die die Email auf die whitelist setze.
 
Hast du vielleicht mehr Inforationen darüber, warum die Mail als Spam erkannt worden ist (z.B. aus den Mail-Headern, Logs, etc.)?
 
> Die Mail von Proxmox ist jenseits von Gut und Böse was die Wertung beim Spam angeht.

also spamfilter sind aber auch oft jenseits von gut und böse. oder die konfigurationen von mailsystemen.

bitte mal nicht einfach sowas in den raum stellen ohne darlegung von infos/fakten.
 
Habe jetzt gefunden, wo man die Bewertungen sehen kann.

Mein Anbieter markiert im Standard ab 4 als Spam und löscht ab 5.

X-AF-Spam-Report: Action: add header
Symbol: VIOLATED_DIRECT_SPF(3.50)
Symbol: FROM_HAS_DN(0.00)
Symbol: FROM_EQ_ENVFROM(0.00)
Symbol: HFILTER_HELO_NORES_A_OR_MX(0.30)
Symbol: RCVD_COUNT_TWO(0.00)
Symbol: TO_DN_NONE(0.00)
Symbol: TO_MATCH_ENVRCPT_ALL(0.00)
Symbol: BAYES_HAM(-3.00)
Symbol: FUZZY_BLOCKED(0.00)
Symbol: MIME_GOOD(-0.10)
Symbol: NEURAL_HAM(0.00)
Symbol: DMARC_NA(0.00)
Symbol: R_DKIM_NA(0.00)
Symbol: R_SPF_FAIL(1.00)
Symbol: RCPT_COUNT_ONE(0.00)
Symbol: ASN(0.00)
Symbol: MIME_TRACE(0.00)
Symbol: RCVD_NO_TLS_LAST(0.10)
Symbol: HFILTER_HELO_IP_A(1.00)
Symbol: ARC_NA(0.00)
Symbol: TO_EQ_FROM(0.00)
Symbol: RBL_AMI_POLICY(2.00)
Message-ID: 20231231115740.C07A13C166C@pve.fritz.box
X-AF-Spam-Score: 4.8
Wobei, wie ich gtade gelesen habe, der VIOLATED_DIRECT_SPF eher an mir liegt. Nur warum wertet der eine Mail von mir selber als schlecht....
 
Last edited:
  • Like
Reactions: RolandK

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!