Has anyone been able to configure Cisco Meraki webhooks to get Meraki alerts into Opsgenie? Meraki does have the ability but I'm not sure how to configure Opsgenie to receive them.
Thanks!
Hi @Scott Chapman ,
Opsgenie does not currently have a pre-built integration with Meraki, nor do we have a generic inbound webhook integration that can accept any request and create an alert. Each integration in Opsgenie is designed to handle a specific type of payload, and map the fields of that payload to the Opsgenie alert fields (message, description, alias, etc.).
You could leverage the Opsgenie Alert API to create alerts in Opsgenie. This requires that the requests be sent to Opsgenie with the expected payload format
e.g.
So if on the Meraki side, you can configure the format of the payload it sends, then you could set it up to send the request to Opsgenie with this format. If not, you may need to use some sort of proxy to receive the request from Meraki, structure the payload in the Opsgenie format, then send the request to Opsgenie to create the alert via API.
Alternatively if Meraki can send alerts via email, you could leverage an Email integration in Opsgenie to create alerts.
Hope this helps! Let us know if you have anymore questions.
Thanks,
Samir
Exactly what I was looking for, thank you for your response Samir!
Have a blessed day,
Scott
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Meraki now provides the ability to write custom webhook templates so that you can shape the JSON & headers to fit any service, including OpsGenie
Docs
https://developer.cisco.com/meraki/webhooks/#!payload-templates-overview
Quick Example:
headers.liquid
{
"Authorization": "GenieKey {{sharedSecret}}"
}
body.liquid
{
"message": "{{alertType}}",
"alias": "{{alertTypeId}}",
"description":"describe {{alertType}}",
"responders":[
],
"visibleTo":[
],
"actions": ["AnExampleAction"],
"tags": [],
"details":{{alertData | jsonify}},
"entity":"An example entity",
"priority":"{{alertLevel}}"
}
There is already an example Jira template if you are curious
https://developer.cisco.com/meraki/webhooks/#!jira-custom
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.