Microsoft Teams Connectors -> Microsoft Teams Workflows

Hello Community! :wave:

Important news for the users of Microsoft Teams notifications: in 2.3.0p11 and 2.2.0p32 we will introduce an incompatible change due to the decision of Microsoft to retire the connectors feature.

Some of you raised the question of making Microsoft Teams notifications compatible with workflows due to that change (MS Teams notifications to the new Teams Workflow?) – and we listened, adapting the script accordingly.
This means that with the next release the connectors will not be available anymore.

To make MS Teams notifications work with the workflows, within the MS Teams:

  • Click the 3 dots on a channel and select “Workflows”
  • Choose “Post to a channel when a webhook request is received”
  • Choose name for the workflow, e.g. “Checkmk”
  • Select team and channel where the webhook should post to
  • Copy webhook URL

You can find more details on this in the “How do I transition from Office 365 connectors to Workflows?” section in the deprecation note on the Microsoft website.

To configure the notification plugin within Checkmk:

  • Post copied webhook URL to “Webhook URL” of your notification rule for MS Teams

That’s it!

You can learn more details in the Werk representing the change: Werk #17155: Microsoft Teams: Use workflows instead of connectors

:vulcan_salute:

10 Likes

Hello Sara,

this is absoletely awesome. Good job y’all! :partying_face:

4 Likes

Hello Sara,

tried this but I get this error when powerautomate will start this:

Do you know why? Made exactly the same like you in the blog.
Could it be a permission issue?

Thank you for your help.

Hi Matthew!

Which version are you using? There had been a known bug in p13 that we fixed in p14 – also had to do with adaptive card, although the error was different, if I remember correctly.

Unfortunately, I cannot really help with anything besides this information but I would suggest to ask in the troubleshooting category – other community members who use the feature might know more about this specific error.

2 Likes

It could also be a problem with the way the flow has been defined. We wrote a KB article on this topic. Any Feedback is appreciated.

3 Likes

Hi, I am running a new install of cmk raw 2.3.0p18 and trying to use Teams notifications via webhook. I have followed this KB Article exactly, even the test script is working perfectly, however when I run “Test Notifications” in cmk, it is not working. I do not see any card/message or anything in the Run history log either.

3 questions:

1.What do you see in the $OMD_ROOTvar/log/notify.log ?
2. Can you also try Send Custom notifications or Fake check results?
3. No local copy of msteams ?

If Distributed setup then this needs to be done on the respective site.

Hi chauhan_sudhir.

Thank you for your reply. The notify.log is showing the notification generated from the test process.

The Fake Check is working perfectly with notifications appearing in Teams. Thank you for suggesting that.

My assumption is that the “Test Notification” function is not properly formatting the adaptive card for teams. I AM seeing 1 resulting notification in the test page for MS Teams

What do you mean by local copy of MS Teams?

I do not believe I’m using a distributed setup. It’s just 1 cmk server and 1 monitored host using the agent.

Since fake check results are working, my problem is solved.

Thank you,
Yanis

Hi @YanisERPM

sending out a test notification currently only works for HTML mails and ASCII mails. We are working on supporting the other methods, but right now it is not the case!
I will update as soon as I can tell you more about the timeline

Cheers
Tanja

1 Like

Coming with 2.4

4 Likes

Thank you! I had tried to follow the other guide without success. This worked great, so thanks!

The only difference was that I couldn’t find the specific workflow listed, but I used “Post to a chat when a webhook request is received” and was successful.