icinga2-rocketchat-notification

Common
- Clone the repo into
/etc/icinga2/scripts/or only put the scriptrocketchat-service-notification.shin this folder - Set up a new incoming webhook from the admin page on your rocket.chat instance
Director
- Create a new command :
- Commande type :
Notification Plugin Command - Command :
/etc/icinga2/scripts/rocketchat-service-notification.sh - Arguments : you need to make the correspondance between icinga2 and the arguments used in the script
- Commande type :
- Create a Notification template with the previous created command
- Créate a rule to apply this template on the type you want (
ServicesorHost) 3.1 You can create specific rules to assign this notification - Deply and enjoy :heart:
| Argument | Value |
|---|---|
| -d | $icinga.long_date_time$ |
| -e | $service.name$ |
| -l | $host.name$ |
| -n | $host.display_name$ |
| -o | $service.output$ |
| -r | $user.email$ |
| -s | $service.state$ |
| -t | $notification.type$ |
| -u | $service.display_name$ |
CLI
TODO
Based on the Slack script from : jjethwa/icinga2-slack-notification