bundles/icinga2: do not send recovery emails
This commit is contained in:
parent
763a071acc
commit
c5eb2f4f70
3 changed files with 13 additions and 44 deletions
|
@ -29,9 +29,7 @@ object NotificationCommand "send-host-notification" {
|
|||
"--host_name" = "$host.display_name$"
|
||||
"--state" = "$host.state$"
|
||||
"--output" = "$host.output$"
|
||||
"--escalation" = {
|
||||
set_if = "$escalation$"
|
||||
}
|
||||
"--notification-type" = "$notification.type$"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -67,8 +65,6 @@ object NotificationCommand "send-service-notification" {
|
|||
"--service_name" = "$service.display_name$"
|
||||
"--state" = "$service.state$"
|
||||
"--output" = "$service.output$"
|
||||
"--escalation" = {
|
||||
set_if = "$escalation$"
|
||||
}
|
||||
"--notification-type" = "$notification.type$"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,55 +3,23 @@ apply Notification "notify_host-notification" to Host {
|
|||
interval = 30m
|
||||
|
||||
times = {
|
||||
begin = 1m
|
||||
end = 30m
|
||||
begin = 0m
|
||||
}
|
||||
|
||||
assign where host.vars.notification.sms == true
|
||||
}
|
||||
|
||||
|
||||
apply Notification "notify_service-notification" to Service {
|
||||
import "service-notification"
|
||||
interval = 30m
|
||||
|
||||
times = {
|
||||
begin = 1m
|
||||
end = 30m
|
||||
begin = 0m
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue