seffparker / icinga2-teams-notification

Send Icinga2 notification to Microsoft Teams as Incoming Webhooks
Apache License 2.0
16 stars 5 forks source link

Use teams_notifications_channel var #2

Closed gianmarco-mameli closed 3 years ago

gianmarco-mameli commented 3 years ago

Hi, I've configured your command on our Icinga2 infrastructure, I would ask you how to use the var "teams_notifications_channel", because we want to separate notification to various channels, but I think the only method is different webhook urls. There's any method to use the var? thanks in advance

seffparker commented 3 years ago

Unlike Slack, the Teams webhooks are hard-bound to a channel and cannot be changed via the HTTP POST data, like we usually do for Slack. See this discussion

The variable teams_notifications_channel is dummy here after the plugin ported from icinga2-rich-slack-notification

gianmarco-mameli commented 3 years ago

Ok, thanks, we try to solve the problem adding some var on hosts to change the webhook url