Hello!
I am trying to integrate Catalyst Center notifications with PagerDuty. Our team requires a consistent field where the Hostname of the network Device will be displayed and later used for reporting etc..
From what I have seen, Catalyst Center usually includes the Device IP only in the PagerDuty channel.. and also in the generic Webhook payloads.
There is an option to add headers to the webhook.. Potentially I could plug in a internal DNAC variable name in the header to pass the device name along.. However I am not finding any syntax or details on how to populate a variable there.
If in the webhook header (Under system\destinations), I use the value '$nwDeviceName',, I will then see the value in the header, but always unresolved.. I've tried a few permutations of syntax and variable names, including variable names present in the JSON schema shown in the SDK.. but no luck so far.
This is what I get on the other site.. I would like to see the actual DeviceName, Switch1, AP2, WLC-123..
Has anyone ever made this work without writing middleware ?
[
{
"host": "events.pagerduty.com"
},
{
"devicename": "$nwDeviceName'"
},