aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server
blob: 4f581cc27d3a4a2e6d0bb7eccce45e59666f217b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apply Notification "email" to Host {
  command = "mail-host-notification"

  states = [ Up, Down ]
  types = [ Problem, Acknowledgement, Recovery, Custom,
            FlappingStart, FlappingEnd,
            DowntimeStart, DowntimeEnd, DowntimeRemoved ]

  users = [ "sysadmins" ]

  vars += {
    notification_icingaweb2url = "https://${icinga_fqdn}"
  }

  assign where true
}

apply Notification "email" to Service {
  command = "mail-service-notification"

  states = [ OK, Warning, Critical, Unknown ]
  types = [ Problem, Acknowledgement, Recovery, Custom,
            FlappingStart, FlappingEnd,
            DowntimeStart, DowntimeEnd, DowntimeRemoved ]

  users = [ "sysadmins" ]

  vars += {
    notification_icingaweb2url = "https://${icinga_fqdn}"
  }

  assign where true
}