06-21-2024 08:57 AM
06-23-2024 11:16 PM
This is what my teams webhook script looks like:
#!/bin/bash
# https://community.extremenetworks.com/extreme/topics/extrememanagment-alarms-with-ms-teams-slack-etc
title=$1
shift
while (( $# )); do
if [[ $1 == '^^^' ]]; then
shift
break
fi
title="$title $1"
shift
done
request_body=$(cat <<EOF
{
"title": "$title",
"themeColor": "ff0000",
"text" : "$*"
}
EOF
)
#echo $request_body > /tmp/foo
/usr/bin/curl -H "Content-Type: application/json" -d "$request_body" https://contoso.webhook.office.com/webhookb2/guid@tenantid/IncomingWebhook/hash/guid
And the notifications look like this:
06-23-2024 11:17 PM
06-23-2024 11:18 PM
Oh, but is this XIQ or XIQ-SE?
06-24-2024 01:48 AM
Hi James,
I am using XIQ. I can't see a place in the interface to add any scripts. Is that an XIQ-SE feature?