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
}
|