I'm trying to set up PagerDuty notifications in Proxmox VE 8 and I want something like this:
The webhook fails with the confusing error `Could not test target: https://events.pagerduty.com/v2/enqueue: status code 400 (500)`
After way too much troubleshooting I discovered that test notifications apparently don't populate the "fields" and PagerDuty requires a "source".
Is there any way to set this up with default values in case one is missing? Is there any way to map the Proxmox severity values to the PagerDuty ones? Is there anyway to test your template other than throwing it at a web endpoint and seeing what happens?
Code:
{
"payload": {
"summary": "{{ escape title }}",
"severity": "critical",
"source": "{{ fields.hostname }}",
"custom_details": {
"message": "{{ escape message }}",
"hostname": "{{ fields.hostname }}",
"original_severity": "{{ severity }}"
}
},
"client": "Proxmox",
"routing_key": "{{ secrets.pd }}",
"event_action": "trigger"
}
The webhook fails with the confusing error `Could not test target: https://events.pagerduty.com/v2/enqueue: status code 400 (500)`
After way too much troubleshooting I discovered that test notifications apparently don't populate the "fields" and PagerDuty requires a "source".
Is there any way to set this up with default values in case one is missing? Is there any way to map the Proxmox severity values to the PagerDuty ones? Is there anyway to test your template other than throwing it at a web endpoint and seeing what happens?