Ad Widget

Collapse

Customizing MS Teams alert message and subject

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rn21528nr
    Junior Member
    • Jul 2022
    • 13

    #1

    Customizing MS Teams alert message and subject

    If i click TEST on my MS Teams webhook, I see that the alert message is mostly comprised of the macros {ALERT.MESSAGE} and {ALERT.SUBJECT}. Where can i modify the value of these macros? I'd like to reorder it and eliminate some wording to simplify the alerts.

    edit - I did try going into Media Types - MyTeams Media type - Message Templates - Problem . I was able to modify the Subject line, butnoy the body of the alerts. I even deleted everything from the templates body , and the Teams messages still came though the same . I dont get it.
    Last edited by rn21528nr; 27-10-2022, 23:03.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    I believe there is some logic in the MS Teams media type itself. Open the media type and see the Parameters section. There is a parameter "use_default_message" with a default value of "false" (at least in this new 6.2.3 installation). Try changing it to "true", and/or see the Script section, there is some logic around the parameter and constructing the message.

    Markku

    Comment

    Working...