![alt text]( "Rocket.chat screenshot")
- Clone the repo into
/etc/icinga2/scripts/
or only put the scriptteams-service-notification.sh
in this folder - Set up a new incoming webhook from the admin page on your rocket.chat instance
- Create a new command :
- Command type :
Notification Plugin Command
- Command :
/etc/icinga2/scripts/teams-service-notification.sh
- Arguments : you need to make the correspondence between icinga2 and the arguments used in the script
- Create a Notification template with the previous created command
- Create a rule to apply this template on the type you want (
Services
orHost
) - You can create specific rules to assign this notification
- Deploy and enjoy ❤️
Argument | Value |
---|---|
-d | |
-e | |
-l | |
-n | |
-o | |
-r | |
-s | |
-t | |
-u |
TODO
Based on the Slack script from : jjethwa/icinga2-slack-notification