Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

richerve/icinga2-slack-notification

Repository files navigation

icinga2-slack-notification

Originally based on: "jjethwa/icinga2-slack-notification"

Make sure to set the configuration values in the sh script with the variables: ICINGA_URL and SLACK_WEBHOOK_URL

###Your setup may vary, so some of the config files included here may need to be tweaked

  1. Set up a new incoming webhook /services/new/incoming-webhook for your team
  2. Add slack-service-notification.sh to /etc/icinga2/scripts directory
  3. Add the contents of slack-service-notification.conf to your templates.conf (or keep it separate depending on your setup)
  4. Add the contents of slack-service-notification-command.conf to your commands.conf (or keep it separate depending on your setup)
  5. Add an entry to your notifications.conf (see example below)
apply Notification "slack" to Service {
  import "slack-service-notification"
  user_groups = [ "oncall" ]
  interval = 30m
  assign where host.vars.sla == "24x7"
}
  1. Set up a new user and usergroup
object User "oncall_alerts" {
  import "generic-user"

  display_name = "oncall alerts"
  groups = [ "oncall" ]
  states = [ OK, Warning, Critical ]
  types = [ Problem, Recovery ]

  email = "my@email.com"
}

object UserGroup "oncall" {
  display_name = "oncall"
}

About

Icinga2 slack integration for notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages