Microsoft Teams Notifications - Empty Event

CMK version: 2.2.0p7
OS version: AlmaLinux 9.1

Error: Notifications received via Microsoft Teams produce an empty field for “Event.” Notifications via email correctly provide the event text, such as “Stopped Flapping (while UP)”.

Configuration:

Any help would be appreciated.

Example Teams output:

Example Email output:
image

I am not certain if I understand this entirely, but you could use the “Details for …” options in the Teams notification configuration to customize the notifications.

The Details options let me define the text that’s sent in the Teams notifications a bit. That said, it indicates the $EVENT_TXT$ variable is used to define what’s displayed in the “Event” field, but it comes out blank (even though I’m using it in the title). I’ve added $NOTIFICATIONTYPE$ so that there’s some useful information there.

image

Interestingly, doing an analysis on the notification doesn’t even show an EVENT_TXT field/variable.

I’m just wondering how I can get the Event field to show something similar to what the email provides.

Have look at event_templates() in the mail notification script.
The EVENT_TXT variable is constructed within the script.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.