Recently our CEO announced that we will be migrating from Slack to Teams. Quick looking at Microsoft Teams Connectors revealed that they indead support Incomming Webhooks. That leaves the problem to Migrate Slack #Dude channel to Microsoft Teams because of course the sintax for webhooking is different on Teams that it is now on Slack.
Currently our dude server use current settings to inform us via Slack (Notifications):
Name: Slack
Type: execute on server
Command:
Name: Slack > up to down | unstable to down/tool fetch mode=https url="https://hooks.slack.com/services/AAAAA/ ... CCCCCCCCCC" http-method=post http-data="payload={\"text\":\"<[TimeAndDate]> Service [Probe.Name] on [Device.Name] ([Device.FirstAddress]) is now [Service.Status] ([Service.ProblemDescription])\"}"
Type: execute on server
Command:
Name: Slack > down to up/tool fetch mode=https url="https://hooks.slack.com/services/AAAAA/ ... CCCCCCCCCC" http-method=post http-data="payload={\"attachments\": [ { \"title\": \"[Device.Name] is now [Service.Status]\", \"text\": \"<[TimeAndDate]> Service [Probe.Name] ([Device.FirstAddress]) on [Device.Name] is now [Service.Status] ([Service.ProblemDescription])\", \"color\": \"danger\" } ] }"
Type: execute on server
Command:
Those 3 commands are enough to report UP->DOWN and DOWN->UP Status on Slack./tool fetch mode=https url="https://hooks.slack.com/services/AAAAA/ ... CCCCCCCCCC" http-method=post http-data="payload={\"attachments\": [ { \"title\": \"[Device.Name] is now [Service.Status]\", \"text\": \"<[TimeAndDate]> Service [Probe.Name] ([Device.FirstAddress]) on [Device.Name] is now [Service.Status] ([Service.ProblemDescription])\", \"color\": \"good\" } ] }"
Maybe someone already did migration and ca write here correct command for Microsoft Teams which I can use to "execute on Server" in Slack?