Update and Upgrade emails

jhmc93

Member
Feb 22, 2022
198
3
23
32
Is it possible to configure notifications to email me when, there's an available update? and whether it fails or is successful after it runs dist-upgrade
 
If you have a non-cluster server with a subscription, it is there by default, at least the new updates part.
For non-subscription (both cluster and stand-alone) or cluster you have to turn it on via a command:
Code:
pvesh set /cluster/options --notify package-updates=always
Just be sure to setup notifications, possibly filter on type=package-updates

Sources:
https://forum.proxmox.com/threads/package-update-notifs-not-working.141182/#post-632364
https://forum.proxmox.com/threads/automatic-service-update-with-e-mail-alert.141999/post-636965

Note that it will only notify on "new" updates, and only during the daily, automatic, update-check, but if you want to check if it works:
From the UI disable a repo that has updates ready, search for updates, enable the repo again (but don't search, so you have "new" updates to find), then wait for the next day or run the command:
Code:
systemctl start pve-daily-update.service
 
Last edited:
  • Like
Reactions: Hunduster