Please help to disable notifications from services, when host in downtime and UP. I tried to use dependencies like that:
apply Dependency "disable-service-notification" to Service {
parent_host_name = host.name
disable_notifications = true
disable_checks = true //tried true/false
ignore_soft_states = false //tried true/false
states = [Up] //tried with and without
assign where "team" in host.groups
}
So you have a host, that has a downtime configured and is still UP. now services of the same host are critical and you want to stop those service sending emails?
Then you will have to configure the downtime with “all services” set to true, so that the services also get the downtime.
For a service dependency you will need a parent service, afaik.
I’m trying to set downtime for a bunch of hosts using Thruk, but services shouldn’t page on hosts in downtime state. Because it doesn’t make sense when someone is working on those hosts, and put downtime, that means services may flap or go critical time-to-time.
Using All Services checkbox in WebUI helps, but I’m using Thruk and there is no such button for multiple host selection.
apply ScheduledDowntime "my-fancy-downtime" to Service {
author = "icingaadmin"
comment = "Scheduled downtime for backup"
ranges = {
monday = "02:00-03:00"
tuesday = "02:00-03:00"
wednesday = "02:00-03:00"
thursday = "02:00-03:00"
friday = "02:00-03:00"
saturday = "02:00-03:00"
sunday = "02:00-03:00"
}
assign where "team" in host.groups
}
I have a parallel thread open right now. On at least one host, Icinga2 still sends notification, even if the services are in a downtime. On another one the notifications are not sent. See PROBLEM notification sent during recurring downtime