cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

ExtremeManagment alarms with MS Teams/Slack etc.

ExtremeManagment alarms with MS Teams/Slack etc.

James_A
Valued Contributor
Many years ago there was a NetSight feature called isaac which would post updates to social media. At the time I was rather dismissive of the idea, but now with applications like Slack and Microsoft Teams it seems like the time is right for ExtremeManagement to get integration to send alarms there.
2 REPLIES 2

Johannes_Dennin
New Contributor
You can already add a script to a netsight alarm (right in the alarm settings). With this script and minor changes to the resulting JSON for each platform, you can post to anything that supports incoming webhooks.

Example for Cisco Spark:
https://gist.github.com/joxz/39f597ae7b8876e2362fbcd204db7a10

Excellent. I customised my script a bit, so you can split the title and body with ^^^ in the alarm notification:#!/bin/bash
title=$1
shift
while (( $# )); do
if [[ $1 == '^^^' ]]; then
shift
break
fi
title="$title $1"
shift
done

request_body=$(cat <
{
"title": "$title",
"text" : "$*"
}
EOF
)

/usr/bin/curl -H "Content-Type: application/json" -d "$request_body" https://outlook.office.com/webhook/
GTM-P2G8KFN