Forum Discussion
4 years ago
Jonathan,
Sorry for the delay. I was not in the office for some time.
Please see instructions below.
Open Teams and right click the 3 dots behind the channel where the notifications should appear
- Select “Connectors” and create an “Incoming webhook”.
- Give it a name and click <Create>
- Copy the provided URL, you will need it in a later stage
Open LogicMonitor webinterface and go to “Settings > Integrations”
- Click <Add> to create a new integration
- Click on “Custom HTTP Delivery”
- Give it a name and description, select “HTTP Post” as method
- In the URL-Field, paste the URL you saved earlier from Teams
- Leave username and password empty
- Select “Raw” as data type, and “JSON” as format
- Paste text below in the body field:
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "FF0000",
"summary": "##ALERTID##",
"sections": [{
"activityTitle": "##LEVEL##: ##HOST## ##DATASOURCE##",
"activitySubtitle": "",
"activityImage": "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcT6Jn1ZYbUYMiP1RWtWhcXjnAYiOSfvCwiB_w&usqp=CAU",
"facts": [{
"name": "Type",
"value": "##ALERTTYPE##"
}, {
"name": "Status",
"value": "##ALERTSTATUS##"
}, {
"name": "Host",
"value": "##HOST##"
}, {
"name": "Start",
"value": "##START##"
}, {
"name": "URL",
"value": "[##ALERTDETAILURL##](##ALERTDETAILURL##)"
}],
"text": "##MESSAGE##"
}],
}
Click <Save> and test ?.
Of course the body is customisable, but at least this one is working. Feel free to adapt according your needs.
Kind regards,
JEroen
Related Content
- 2 years ago
- 7 years ago