Table of Contents
- How Proxmox notifications are routed
- Step 1: Create an Echobell channel
- Step 2: Add the webhook target
- Step 3: Route only errors to the call
- Optional: a quieter second level
- Step 4: Make the backup jobs use the notification system
- Step 5: Test the real path
- Common pitfalls
- What this setup does not do
- Frequently asked questions
- Which Proxmox VE version do I need?
- Can Proxmox call my phone without a third-party service?
- Will the call get through Do Not Disturb?
- Does this work on a cluster?
- Can I get alerts only for production guests?
- Can I ring different people for different events?
- Wrap-up
- Related
Proxmox VE tells you a backup failed by sending an email to root, and that email lands in an inbox you check on Monday. Since Proxmox VE 8.3 the notification system has a webhook target, so the same event can make an HTTP request instead. Point it at an Echobell calling channel, route only error severity to it, and a failed backup, a fenced node or a broken replication job rings your phone like a call. No scripts, no cron job that greps logs, no extra package on the host.
This guide walks through the target, the JSON body, the matcher, the two settings that quietly keep notifications from ever reaching it, and how to test the whole path without waiting for a real failure.
How Proxmox notifications are routed
Since Proxmox VE 8.1, every notification goes through two kinds of objects, both under Datacenter → Notifications:
- Targets say where a notification goes: sendmail, SMTP, Gotify and, from 8.3, Webhook.
- Matchers say which notifications go to which targets, by severity, by metadata field, or by time of day.
The events that use this system, with their metadata:
| Event | type | Severity | Extra fields |
|---|---|---|---|
| Backup failed | vzdump | error | hostname, job-id |
| Backup succeeded | vzdump | info | hostname, job-id |
| Storage replication job failed | replication | error | hostname, job-id |
| Cluster node fenced | fencing | error | hostname |
| System updates available | package-updates | info | hostname |
| Mail for root | system-mail | unknown | hostname |
The useful property for a phone alert: every event that means "something is broken now" has severity error. One matcher on severity covers all three.
The last row matters too. Mail to root — from smartd, the ZFS event daemon or a cron job — is forwarded into the notification system as system-mail with severity unknown, so it can be routed like everything else.
Step 1: Create an Echobell channel
- Install Echobell (iPhone or Android) and create a channel, for example "Proxmox".
- Subscribe to it with the notification type Calling. That is the highest level the channel can reach you at; a request can ask for less, never more.
- Copy the channel's webhook URL. It looks like
https://hook.echobell.one/t/<channel-token>. The token at the end identifies the channel, so treat it like a password.
Step 2: Add the webhook target
Check the version first. On a node shell, pveversion must report 8.3 or later; older releases have no Webhook entry in the target menu.
In the web UI, go to Datacenter → Notifications, click Add under Notification Targets and choose Webhook. Fill it in like this:
- Endpoint name:
echobell-call - Method:
POST - URL:
https://hook.echobell.one/t/{{ secrets.token }} - Header:
Content-Type=application/json - Secret:
token= the token part of your channel URL - Body:
{
"title": "{{ escape title }}",
"body": "{{ escape message }}",
"externalLink": "https://pve.example.lan:8006/"
}
A few notes on those choices:
- The token goes in a secret, not the URL. Target settings live in
/etc/pve/notifications.cfg, which is replicated to every cluster node. Secrets are stored in a separate file only root can read, and the URL template pulls the value in with{{ secrets.token }}. - Always wrap values in
escape. The rendered title and message come straight from the event. A guest name, a storage path or a log line with a double quote or newline would otherwise break the JSON, and the request fails with a 400.escapemakes the value safe inside a JSON string, which is how Proxmox's own Slack and Discord examples use it. titlealready names the node. Proxmox renders titles such as the backup status for a given host, so you can tell which machine rang you from the lock screen.externalLinkis optional. Set it to your web UI address and the notification record opens it with one tap.
Other values available in the body template are {{ severity }}, {{ timestamp }} (Unix seconds), {{ fields.type }}, {{ fields.hostname }} and {{ fields.job-id }}.
Save, then select the target and click Test. Your phone should ring within a few seconds. If it does not, check the common pitfalls below before going further: the matcher cannot fix a target that does not deliver.
Step 3: Route only errors to the call
Under Notification Matchers, click Add:
- Matcher name:
call-on-error - Match rules: one rule, Match Severity =
error - Targets to notify:
echobell-call
That is the whole rule set. It catches failed backups, failed replication and fencing on every node of the cluster, and nothing else.
Leave the built-in default-matcher alone and do not add echobell-call to it. The default matcher has no rules, and a matcher without rules matches every notification, including every successful nightly backup and every "updates available" notice. Add the calling target there and the 2 a.m. backup that worked will ring you as well.
Optional: a quieter second level
Some events deserve a push but not a call: root mail about a degraded pool, or updates waiting to be installed. Add a second webhook target, echobell-push, with the same URL, header and secret, and one extra field in the body:
{
"title": "{{ escape title }}",
"body": "{{ escape message }}",
"notificationType": "time-sensitive"
}
notificationType can only lower the level you subscribed at, so this target arrives as a time-sensitive notification even though the channel is set to Calling. Then add a matcher push-on-warning with two rules, Match Severity = warning, unknown and Match Field type = package-updates, set so that any rule matches, and target echobell-push. The field rule is what lets update notices through: package-updates has severity info, and matching all of info would push every successful backup as well.
Successful backups (info) still reach root by email through the default matcher, which is where a daily "all good" belongs.
Step 4: Make the backup jobs use the notification system
This is the step most setups miss. A backup job does not have to use the notification system at all. Its notification-mode decides:
auto(the default): if the job has an email address set, vzdump sends that email itself with sendmail and skips the notification system. Only jobs without an address go through targets and matchers.notification-system: always go through targets and matchers.legacy-sendmail: always email directly, ignoring targets and matchers.
Jobs created before Proxmox VE 8.1 usually still have an email address, so on an upgraded host your new webhook never sees a backup event. Open Datacenter → Backup, edit each job, and switch its notification setting to the notification system (in /etc/pve/jobs.cfg the job gets notification-mode notification-system). If you still want the email, the default matcher keeps sending it to root.
Step 5: Test the real path
The Test button proves the target works; it does not prove a backup failure will reach it. To test the matcher and the job together without breaking anything:
- Temporarily edit
call-on-errorand addinfoto its severities. - Start a backup of a small guest with Run now.
- When it finishes, your phone should ring with the "backup successful" notification.
- Remove
infofrom the matcher again.
To test the system-mail route, run this on a node:
echo "Test mail from $(hostname)" | mail -s "Proxmox mail test" root
It should arrive through push-on-warning as a time-sensitive notification.
Common pitfalls
- Nothing in the Add menu called Webhook. The node is older than 8.3. Upgrade, or keep using email for now.
- Test rings, real backups do not. The job is in
automode with an email address, so it bypasses the notification system (Step 4). - Every backup rings, not just failures.
echobell-callis attached todefault-matcheror to a matcher with no rules. - A matcher on
job-idnever fires for manual runs.job-idis only set when a job runs on its schedule. Run now sends the notification without it, so match ontypeor severity instead. - Requests fail with HTTP 400. The body is not valid JSON. A value is missing
escape, or a quote around the template went missing while editing. - The notification body is cut off. Backup messages include a per-guest summary and the log, which can run to several kilobytes. Echobell keeps the first 1500 bytes of a body, which is why the title carries the host and the result. The full log stays in the task viewer on the node.
- No request leaves the node. The node needs outbound HTTPS to
hook.echobell.one. A firewall that only allows the Proxmox package mirrors will block it.
What this setup does not do
- No acknowledgement or escalation. Answering the call does not mark anything handled in Proxmox, and everyone subscribed at Calling is called at the same time; nobody is called next.
- No monitoring of a dead host. A node that loses power cannot send a webhook. Pair this with an outside check that expects a heartbeat, such as a ping from a cron job to a dead-man's-switch service.
- No deduplication. Three failed guests in one job are one notification, but three failed jobs are three calls.
Frequently asked questions
Which Proxmox VE version do I need?
8.3 or later for the webhook target. The notification system with targets and matchers arrived in 8.1, so on 8.1 and 8.2 you can prepare the matchers and switch backup jobs to the notification system, then add the webhook after upgrading.
Can Proxmox call my phone without a third-party service?
No. The built-in targets send email or push to Gotify, and the webhook makes an HTTP request. To get a ringing phone, the webhook has to end at a service that turns a request into a call, such as an Echobell calling channel.
Will the call get through Do Not Disturb?
A calling-type Echobell notification behaves like an incoming call, so it gets through iOS Focus and Do Not Disturb when your Focus settings allow calls. An email or an ordinary push does not.
Does this work on a cluster?
Yes. Notification targets and matchers are cluster-wide, so you configure them once and every node uses them. Each node sends its own events, and the title includes the node name.
Can I get alerts only for production guests?
Matchers can also match fields with an exact value or a regular expression. Put production guests in their own scheduled backup job and add a Match Field rule on job-id next to the severity rule, with the matcher set so that all rules must match.
Can I ring different people for different events?
Create one Echobell channel per audience, one webhook target per channel, and one matcher per target. Everyone subscribed to a channel at Calling is called.
Wrap-up
The full path is short: a calling channel, one webhook target with the token in a secret and every value escaped, one matcher on error, backup jobs switched to the notification system, and a real test before you rely on it. After that, a failed backup becomes a phone call instead of a Monday morning email.
Download Echobell for iPhone or get it on Google Play, then press Test on the new target.