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

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