Franziska Kunsmann
15826c73b0
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
61 lines
1.1 KiB
Text
61 lines
1.1 KiB
Text
apply Notification "notify_host-notification" to Host {
|
|
import "host-notification"
|
|
interval = 30m
|
|
|
|
times = {
|
|
begin = 1m
|
|
end = 30m
|
|
}
|
|
|
|
assign where host.vars.notification.sms == true
|
|
}
|
|
|
|
|
|
apply Notification "notify_service-notification" to Service {
|
|
import "service-notification"
|
|
interval = 30m
|
|
|
|
times = {
|
|
begin = 1m
|
|
end = 30m
|
|
}
|
|
|
|
assign where service.vars.notification.sms == true
|
|
}
|
|
|
|
|
|
apply Notification "notify_host-notification-escalation" to Host {
|
|
import "host-notification"
|
|
interval = 20m
|
|
|
|
times = {
|
|
begin = 30m
|
|
}
|
|
|
|
vars.escalation = true
|
|
|
|
assign where host.vars.notification.sms == true
|
|
}
|
|
|
|
|
|
apply Notification "notify_service-notification-escalation" to Service {
|
|
import "service-notification"
|
|
interval = 20m
|
|
|
|
times = {
|
|
begin = 30m
|
|
}
|
|
|
|
vars.escalation = true
|
|
|
|
assign where service.vars.notification.sms == true
|
|
}
|
|
|
|
|
|
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
|
|
}
|