icinga2-gotify-notification
Send notifications from Icinga2 to Gotify
Installation
- copy both scripts/*.sh files to /icinga2/scripts/ folder
- copy gotify.conf file to /icinga2/conf.d folder
- set Pager value from desired user to
- reload icinga
- create Notifications with new NotificationCommands:
- gotify-host-notification
- gotify-service-notification
Testing
1. Preparation
set Webhook URL for testing
run in bash:
export ICINGA_CONTACTPAGER=
2. run tests
- ./test/bats/bin/bats test/test-host-notifications.bats
- ./test/bats/bin/bats test/test-service-notifications.bats