bundlewrap/bundles/icinga2/files/icinga2/notifications.conf

38 lines
848 B
Plaintext
Raw Permalink Normal View History

2020-11-22 08:04:02 +00:00
apply Notification "notify_host-notification" to Host {
import "host-notification"
interval = 30m
2020-11-22 08:04:02 +00:00
times = {
begin = 0m
}
2020-11-22 08:04:02 +00:00
period = host.vars.period
assign where host.vars.notification.sms == true
2020-11-22 08:04:02 +00:00
}
apply Notification "notify_service-notification" to Service {
import "service-notification"
interval = 30m
2020-11-22 08:04:02 +00:00
times = {
begin = 0m
}
2020-11-22 08:04:02 +00:00
period = host.vars.period
assign where service.vars.notification.sms == true
ignore where host.vars.notification.sms == false
2020-11-22 08:04:02 +00:00
}
apply Notification "notify_service-notification-mail" to Service {
import "service-notification"
interval = 0
2020-11-22 08:04:02 +00:00
period = host.vars.period
assign where service.vars.notification.mail == true
ignore where service.vars.notification.sms == true
ignore where host.vars.notification.mail == false
2020-11-22 08:04:02 +00:00
}