Backup notifications only on error

foux

New Member
May 2, 2024
4
0
1
Hello,
I'm sorry this is certainly a question allready answered, but I can't find it anywhere.
I've got a backup job running every 4h15 minutes on my server. I'd like to receive mails only in case of errors, but I receive mails on each backup execution. Is there a way to limit the mails to errors? On the settings of the backup task, I can't select to send on errors only :
CleanShot 2024-05-02 at 10.30.38.png

Thanks for your help!
 
Hello,
I'm sorry this is certainly a question allready answered, but I can't find it anywhere.
I've got a backup job running every 4h15 minutes on my server. I'd like to receive mails only in case of errors, but I receive mails on each backup execution. Is there a way to limit the mails to errors? On the settings of the backup task, I can't select to send on errors only :
View attachment 67417

Thanks for your help!
You currently have Send email: Always, you can switch that to On failure only. Optionally you can select the Notification mode: Notification system and use matching rules to filter what to send when, see https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_notifications
 
The issue is that I can't change to "On failure only". As you can see in my screenshot it is greyed out and I can't edit it.
Thanks
You will have to provide the email address first, then you can change the field.
 
  • Like
Reactions: Kingneutron
Tamam, ben o kadar aptalım.....

Çok teşekkürler!

You currently have Send email: Always, you can switch that to On failure only. Optionally you can select the Notification mode: Notification system and use matching rules to filter what to send when, see https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_notifications
it's not possible with "Notification system" i'm using Notification system, in this case can not see this option. I want to receive email only if backup failed. How can i do this with Notification system option? Also it's same for PBS
 
I face the same issue - when the "Notification system" is chosen, the "On failure only" option is disabled
 
it's not possible with "Notification system" i'm using Notification system, in this case can not see this option. I want to receive email only if backup failed. How can i do this with Notification system option? Also it's same for PBS

The option won't show in the backup setting.

Instead, you will need to set your default notifications to only send emails when errors are triggered:

Go to notifications, edit your default notification matcher, go to match rules tab, click add rule and do:

1. Node type: Match Severity
2. Unselect "Info" severity (or pick only Error severity, if that's your preference)
3. Press OK

Now you'll only receive an email if there's an error somewhere (I prefer getting an email even if it's only a warning).

This works for me because I only want to get any system notifications (including backups) if there's a warning or error. If you have more complicated setup and want to get "info" emails for other things, it seems like you could do this with the notification matcher system but I haven't tested it out.
 

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!