Disabling email notifications for replication jobs

AdrianM2

New Member
May 15, 2018
11
0
1
35
Hi.

I was looking in web gui and config files but I can not find any way for disabling "Replication job failed" e-mail alerts.

Some of my replication jobs are falling but on next schedule they are getting done so I don''t want to receive emails about it every time it happens.

Any suggestions on where it can be changed?
 
Hi,

you can edit the service file of pvesr and remove the email option.
 
Hi,

you can edit the service file of pvesr and remove the email option.

You mean this file:
Code:
/lib/systemd/system/pvesr.service
right?

it contains:
Code:
[Unit]
Description=Proxmox VE replication runner
ConditionPathExists=/usr/bin/pvesr

[Service]
Type=oneshot
ExecStart=/usr/bin/pvesr run --mail 1

it should be:
Code:
ExecStart=/usr/bin/pvesr run --mail 0
?
 
Yes but I would copy this file and edit it under
/etc/systemd/system/pvesr.service

Because this way an update will not remove your setting
 
EDIT:

Unfortunately mail alert for replication jobs are still turned on.
I tried both:
Code:
ExecStart=/usr/bin/pvesr run --mail 0

and

Code:
ExecStart=/usr/bin/pvesr run


Any ideas on how this line should look like?
 
What you get when you call this?

Code:
systemctl cat pvesr.service
systemctl cat pvesr.timer
 
Last edited:
What you get when you call this?

Code:
systemctl cat pvesr.service
systemctl cat pvesr.timer
[Code]

Code:
# /lib/systemd/system/pvesr.service
[Unit]
Description=Proxmox VE replication runner
ConditionPathExists=/usr/bin/pvesr

[Service]
Type=oneshot
ExecStart=/usr/bin/pvesr run

and

Code:
# /lib/systemd/system/pvesr.service
[Unit]
Description=Proxmox VE replication runner
ConditionPathExists=/usr/bin/pvesr

[Service]
Type=oneshot
ExecStart=/usr/bin/pvesr run
root@h2:/#
root@h2:/# systemctl cat pvesr.timer
# /lib/systemd/system/pvesr.timer
[Unit]
Description=Proxmox VE replication runner

[Timer]
AccuracySec=1
RemainAfterElapse=no

[Timer]
OnCalendar=minutely

[Install]
WantedBy=timers.target
 
Try to reload the service and timer
 
I realise this is an old thread, however this is the first Google result for this type of search so I think it is sensible to continue the thread for future foragers.

Is there a way to have it notify on three consecutive failures, instead of every failure? I think that would filter out transient errors and have only real ones notified.
 
  • Like
Reactions: Wouter

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!