Ad Widget

Collapse

MS Teams Zabbix notification formatting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Valelinn
    Junior Member
    • Feb 2018
    • 8

    #1

    MS Teams Zabbix notification formatting

    Hi,

    I recently set up the MS Teams media type for our Team. I like the notifications, but I find that the information in the body often wraps around in annoying ways.

    As an example:

    Problem on XX: High CPU utilization (over 90% for 10m)
    CPU Utilization is too high etc.

    Event time 11:33:17 2020.05.19
    Severity High
    Operational data Current utilization
    7.19 %

    Typically this occurs with the operational data or event tags which makes it harder to interpret.

    I tried checking out the JavaScript for the MS Teams media type, but I don't see much information there in regards to text formatting so I assume it must be getting this information from somewhere else (although I am certainly not familiar with JavaScript, I can just read and Google).

    Is there a way for me to change the formatting?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Check the settings in the "Message templetes" tab of the media settings for "MS Teams".

    Comment

    • Valelinn
      Junior Member
      • Feb 2018
      • 8

      #3
      Hi Atsushi,

      I see the "Message templates" tab, but I don't see any formatting settings that would determine something like column width or when the text should spill over.

      Also, I have use_default_message set to false, so these messages are not being used anyway. Our custom messages (defined in the action themselves) are very similiar to the default, just will minor changes to the subject line and order of data.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Zabbix side is just sending the configured text. The line feed width etc. are not specified. Teams may perform line breaks and formatting on their own. For example, there is a MS product specification that a line feed is deleted by default when you send a notification using Email and receive it in Outlook.

        Comment

        • Valelinn
          Junior Member
          • Feb 2018
          • 8

          #5
          I know that some portion of it must be on Teams' side, but I think this configuration is determined by Zabbix. The messages that come in to Teams are much to "pretty" for it to have guessed how to display things. There isn't any test formatting in the Zabbix message template, but when a notification appears in Teams, titles like "Recovery time", "Severity", and "Operation data" are bolded. The text of the problem name and description all reaches to the far right side of the Teams message, but the data starts wrapping around in the middle of the message, as if they're in a table cell that's too small.

          Comment

          Working...