centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

[notification::microsoft::office365::teams::plugin]: themes colors not working

Open joschi99 opened this issue 2 years ago • 9 comments

The teams notification will not apply the themes defined into the plugin to highlight the status of the notification with the appropiate color. The teams message is like this one:

image

joschi99 avatar Feb 09 '24 09:02 joschi99

UP !

I also have the exact same issue. The highlight color is working great on the old teams desktop app. (The green, yellow, and red status OK, WARNING, CRITICAL)

But, on the new teams desktop and webapp, the hightlight color is not here. Please fix this. Microsoft is trying to shutdown the old teams.

fabien4455 avatar Mar 04 '24 13:03 fabien4455

Hello :)

Does the color theme work if the notification is not "PROBLEM"? Currently the color mapping is as follows:

my $teams_colors = {
        ACKNOWLEDGEMENT => 'fefc8e',
        DOWNTIMEEND => 'f1dfff',
        DOWNTIMESTART => 'f1dfff',
        RECOVERY => '42f56f',
        PROBLEM => {
            host => {
                up          => '42f56f',
                down        => 'f21616',
                unreachable => 'f21616'
            },
            service => {
                ok => '42f56f',
                warning => 'f59042',
                critical => 'f21616',
                unknown => '757575'
            }
        }
    };

If this mapping is not correct, do you have any documentation or other elements that would allow us to create the new color mapping?

lucie-tirand avatar Jul 10 '24 12:07 lucie-tirand

No color is working with Teams 2.0, indipendent if the status

joschi99 avatar Jul 10 '24 14:07 joschi99

Hello :)

So if I understand correctly it's not necessarily that the color mapping is no longer correct but perhaps that since Teams 2.0 it is no longer addressed in the same way or in the same place? If so, do you have any information that would help us know where to send notification colors since Teams 2.0?

lucie-tirand avatar Jul 17 '24 09:07 lucie-tirand

Hello :)

This topic should benefit from the current development of Teams workflows. Could you give us more information to help us solve this issue in the meantime?

lucie-tirand avatar Jul 26 '24 09:07 lucie-tirand

Hello :)

Following the update on August release of the Teams connector, a test on the problem of this issue has been added. Can you tell us if the problem remains?

lucie-tirand avatar Aug 20 '24 09:08 lucie-tirand

Hello :)

Is there some news here ? :) Kind regards.

lucie-tirand avatar Jun 24 '26 14:06 lucie-tirand

Hi @lucie-tirand, please let me know what you need in detail, so I can try to give you all informations.

joschi99 avatar Jun 24 '26 14:06 joschi99

Hello @joschi99 Could you check the following and give use the output ?

  • notification plugin version (with dpkg -l | grep -i Notification-Teams or rpm -q centreon-plugin-Notification-Teams)
  • the notification command defined in centreon web interface
  • the centreon engine log of the notification command run (you may need to set engine to debug from the web interface before, don't forget to anonymise the tokens )

Thanks in advance

Evan-Adam avatar Jun 29 '26 09:06 Evan-Adam