bundlewrap/bundles/icinga2/files/icinga2/notifications.conf
Franzi 7eec5c42e3
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
bundles/icinga2: do not send sms or mail for services when sms/mail was disabled for host
2021-12-04 20:07:36 +01:00

32 lines
755 B
Plaintext

apply Notification "notify_host-notification" to Host {
import "host-notification"
interval = 30m
times = {
begin = 0m
}
assign where host.vars.notification.sms == true
}
apply Notification "notify_service-notification" to Service {
import "service-notification"
interval = 30m
times = {
begin = 0m
}
assign where service.vars.notification.sms == true
ignore where host.vars.notification.sms == false
}
apply Notification "notify_service-notification-mail" to Service {
import "service-notification"
interval = 0
assign where service.vars.notification.mail == true
ignore where service.vars.notification.sms == true
ignore where host.vars.notification.mail == false
}