hello - anyone be so kind as to provide an example of a working webhook to teams ? repeated failed to execute http request - grateful if you could include example body to post , and content type :
Hi
This is an example of our default Node Down template for Teams webhook, which we would then extend the content as applicable for the customer installation we are working on i.e. adding Custom property values, severity values, specific wording for the team etc.
{ "@type": "MessageCard", "@context": "http://schema.org/extensions", "themeColor": "FF0000", "summary": "Node down", "sections": [ { "activityTitle": "Node down: ${N=SwisEntity;M=Caption}", "activitySubtitle": "Alert triggered ${N=Alerting;M=AlertTriggerTime;F=DateTime}", "facts": [ { "name": "Device", "value": "[${N=SwisEntity;M=Caption}](${N=SwisEntity;M=DetailsUrl})" }, { "name": "IP", "value": "${N=SwisEntity;M=IP_Address} " }, { "name": "Vendor", "value": "${N=SwisEntity;M=Vendor}" }, { "name": "Model", "value": "${N=SwisEntity;M=MachineType}" } ], "text": "${N=SwisEntity;M=Caption} is currently ${N=SwisEntity;M=Status}", "markdown": true }, { "text": "**[Click to view alert details](${N=Alerting;M=AcknowledgeLink})**" }, { "text": "**[Click to acknowledge alert](${N=Alerting;M=AcknowledgeLink})**" } ]}
Hope this helps and let us know how you get on
Mark Roberts
Prosperon - UK SolarWinds Partners
Installation | Consultancy | Training | Licenses
What is the error message? Have you looked at this guide here? thwack.solarwinds.com/.../118570
I like that Mark!
All - thanks v.much for replies ( and speed of.. ) - still a failure with mark's example , a bit generic error , and next step is f/wall .
Connector setup in teams appears ok , tested using Postman from another platform ( Json format ).
Review the Alert action logs to see if it provides more details:
C:\ProgramData\Solarwinds\Logs\Orion\ActionsExecutionAlert.logC:\ProgramData\SolarWinds\Logs\Orion\Alerting.Service.V2.log
You 'may' need to adjust the log level, which you can do with the Log Adjuster utility - https://support.solarwinds.com/SuccessCenter/s/article/Adjust-logging-levels-with-the-Orion-Log-Adjuster
Connectivity and DNS are likely to be the issue, assuming your URL for the webhook is correct, which you have tested in Postman.
Thanks to all - error was a combination of f/wall rules and format of body ( Json )
Oh , and a fair dollop of my incompetence
Every day is a learning day for us all.
Glad to hear you got it working