Skip to content

Notifications

Create notification

Go to Datacenter -> Notification -> Add

Standard backup notification contains logs, which are usually long. This will cause that message is longer as Telegram does allow. Temporary solution is to edit backup message.

POST:

https://api.telegram.org/bot{{secrets.BOT_TOKEN}}/sendMessage?chat_id={{secrets.CHAT_ID}}

HEADER:

Content-type == application/json

BODY:

{
 "text": "⚠️Proxmox Notification⚠️
 Title: {{ title }}
 Message: {{ message }}
 Severity: {{ severity }}"

}

Edit matcher

Remove Logs part.

This is unfortunatelly only temporary solution as this directory is rewrited durring reboot.

cd /usr/share/pve-manager/templates/default/
cp vzdump-body.txt.hbs vzdump-body.txt.hbs.bak
nano vzdump-body.txt.hbs
{{error-message}}
Details
=======
{{table guest-table}}
Total running time: {{duration total-time}}
Total size: {{human-bytes total-size}}

Logs
====
{{logs}}