PagerDuty, et al.: Add actual error message on failed backup #409

Open
opened 2021-04-09 14:15:19 +00:00 by fhemberger · 1 comment

When a backup fails, the PagerDuty incident only includes configuration filename, hostname and server time. For debugging, it would be really helpful to have the actual error message as well.

Environment

borgmatic version: 1.5.13

borgmatic installation method: Homebrew

Borg version: borg 1.1.16

Python version: Python 3.9.4

operating system and version: macOS

When a backup fails, the PagerDuty incident only includes configuration filename, hostname and server time. For debugging, it would be really helpful to have the actual error message as well. #### Environment **borgmatic version:** 1.5.13 **borgmatic installation method:** Homebrew **Borg version:** borg 1.1.16 **Python version:** Python 3.9.4 **operating system and version:** macOS
Owner

I apologize for the lengthy delay here. Yes, this would be helpful. One of the other monitoring hooks does something similar by slurping up any borgmatic logs (including the error message) and passing everything on to the monitoring service. So in theory that code could be repurposed for the PagerDuty hook.

I apologize for the lengthy delay here. Yes, this would be helpful. One of the other monitoring hooks does something similar by slurping up any borgmatic logs (including the error message) and passing everything on to the monitoring service. So in theory that code could be repurposed for the PagerDuty hook.
witten added the
good first issue
label 2023-02-04 21:22:53 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#409
No description provided.