A Icinga2 plugin to send notifications to MS teams
These perl modules need to be installed.
- HTTP::Request
- LWP::UserAgent
- URI::Encode (Ubuntu/Debian liburi-encode-perl)
- JSON
- Write complete howto
- Update Script --help command
- Cleanup Director basket json, as it's a clone from the default mail notification command (unnessesary parameters and wrong naming)
--webhook
is required option.
--ICINGAWEB2URL
to add a link in the notification.
- Place the script in /etc/icinga2/scripts/
chmod +x /etc/icinga2/scripts/teams-*-notification.pl
- Configure commands or import Director-Basket_TeamsNotifications.json into Icings-director
- Add the complete Webhook URL (including https://) for Teams Channel as Pager into your contact.