2020-11-22 08:04:02 +00:00
|
|
|
apply Notification "notify_host-notification" to Host {
|
2021-02-17 09:56:18 +00:00
|
|
|
import "host-notification"
|
|
|
|
interval = 30m
|
2020-11-22 08:04:02 +00:00
|
|
|
|
2021-02-17 09:56:18 +00:00
|
|
|
times = {
|
2021-04-01 15:11:42 +00:00
|
|
|
begin = 0m
|
2021-02-17 09:56:18 +00:00
|
|
|
}
|
2020-11-22 08:04:02 +00:00
|
|
|
|
2021-02-17 09:56:18 +00:00
|
|
|
assign where host.vars.notification.sms == true
|
2020-11-22 08:04:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply Notification "notify_service-notification" to Service {
|
2021-02-17 09:56:18 +00:00
|
|
|
import "service-notification"
|
|
|
|
interval = 30m
|
2020-11-22 08:04:02 +00:00
|
|
|
|
2021-02-17 09:56:18 +00:00
|
|
|
times = {
|
2021-04-01 15:11:42 +00:00
|
|
|
begin = 0m
|
2021-02-17 09:56:18 +00:00
|
|
|
}
|
2020-11-22 08:04:02 +00:00
|
|
|
|
2021-02-17 09:56:18 +00:00
|
|
|
assign where service.vars.notification.sms == true
|
2020-11-22 08:04:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply Notification "notify_service-notification-mail" to Service {
|
2021-02-17 09:56:18 +00:00
|
|
|
import "service-notification"
|
|
|
|
interval = 0
|
2020-11-22 08:04:02 +00:00
|
|
|
|
2021-02-17 09:56:18 +00:00
|
|
|
assign where service.vars.notification.mail == true
|
|
|
|
ignore where service.vars.notification.sms == true
|
2020-11-22 08:04:02 +00:00
|
|
|
}
|