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
|
|
|
|
2022-03-05 07:29:10 +00:00
|
|
|
period = host.vars.period
|
|
|
|
|
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
|
|
|
|
2022-03-05 07:29:10 +00:00
|
|
|
period = host.vars.period
|
|
|
|
|
2021-02-17 09:56:18 +00:00
|
|
|
assign where service.vars.notification.sms == true
|
2021-12-04 19:07:36 +00:00
|
|
|
ignore where host.vars.notification.sms == false
|
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
|
|
|
|
2022-03-05 07:29:10 +00:00
|
|
|
period = host.vars.period
|
|
|
|
|
2021-02-17 09:56:18 +00:00
|
|
|
assign where service.vars.notification.mail == true
|
|
|
|
ignore where service.vars.notification.sms == true
|
2021-12-04 19:07:36 +00:00
|
|
|
ignore where host.vars.notification.mail == false
|
2020-11-22 08:04:02 +00:00
|
|
|
}
|