Upgraded to 2.3.0p13.cre - MS teams notification "We're sorry, this card couldn't be displayed"

CMK version:
2.3.0p13.cre

OS version:
NAME=“Rocky Linux”
VERSION=“9.4 (Blue Onyx)”
ID=“rocky”
ID_LIKE=“rhel centos fedora”
VERSION_ID=“9.4”

Error message:
We’re sorry, this card couldn’t be displayed

image

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

Hi,

just upgraded to 2.3.0p13.cre, existing MS teams notifications via workflows stopped working. Flipped back to older version p11, messages are coming through fine now. Also on p13, old webhook url is working fine. Messages have less whitespace.

Also current documentation on workflows is missing at Notifications via Microsoft Teams.

Is it posted it elsewhere?

thanks!

Hi @sotm !

We posted a little clarification about the change here: Microsoft Teams Connectors -> Microsoft Teams Workflows

1 Like

Reverted back to p11, p13 MS Teams notifications are not working. Workflow configuration as per instructions mentioned by sara (same configuration used with p11)

1 Like

The linked setup instructions do not help here. We’re getting the same error “We’re sorry, this card couldn’t be displayed” and therefore no more notifications with v2.3.0p13cee

Websearch says it is something about the “adaptive card schema version”

Hi @tboston !

Yesterday I was only able to share the answer to the second question about the description of the changes, unfortunately.

Currently we found the change that caused the initial issue and it will be reverted in the next patch – or it is also possible to manually edit the notification script.

As soon as I know more I, or my colleagues, will share the information here.

1 Like

Hi!
There is a manual edit of the script, if you would not like to wait for the next patch release. Please use at your own risk!

Until the release:

mkdir ~/local/lib/python3/cmk/notifications_custom
cp ~/lib/python3/cmk/notification_plugins/msteams.py ~/local/lib/python3/cmk/notifications_custom/
sed -i 's/"version": "1.5"/"version": "1.3"/' ~/local/lib/python3/cmk/notifications_custom/msteams.py
cp ~/share/check_mk/notifications/msteams ~/local/share/check_mk/notifications/
sed -i 's/Microsoft Teams/Microsoft Teams (custom)/;s/notification_plugins/notifications_custom/' ~/local/share/check_mk/notifications/msteams

After the patch release is released, do not forget to delete the custom files:

rm ~/local/share/check_mk/notifications/msteams
Either removing the entire notifications_custom folder
rm -rf ~/local/lib/python3/cmk/notifications_custom
Or just the MS Teams script if you have other scripts in that folder
rm ~/local/lib/python3/cmk/notifications_custom/msteams.py

Again, please use at your own risk!

2 Likes

Confirmed to be fixed in 2.3.0p14.cre… thanks!

1 Like