viper539
(Uwe)
August 19, 2019, 8:19am
1
Hello Colleagues,
i have a downtime created for my printers from Friday 19:50 to Monday 08:10.
apply ScheduledDowntime "weekend-downtime" to Host {
author = "icingaadmin"
comment = "Scheduled downtime for energy saving"
ranges = {
monday = "00:00-08:10"
friday = "19:50-24:00"
saturday = "00:00-24:00"
sunday = "00:00-24:00"
}
assign where host.vars.device_downtime == "printer"
}
I get every 0 o’clock 2 notifications per Host that the Downtime ends and starts.
How can i fix this?
Take a look into your notificationtemplates:
template Notification “host-24x7” {
interval = 6h
command = “mail-host-notification”
states = [ Up, Down ]
types = [ Problem, Acknowledgement, Recovery, Custom,
FlappingStart, FlappingEnd,
DowntimeStart, DowntimeEnd, DowntimeRemoved ]
period = “24x7”
}
dnsmichi
(Michael Friedrich)
August 19, 2019, 11:19am
3
Hi,
a scheduled downtime object generates runtime downtimes from calculated segments for each day. Therefore the downtime on Saturday ranges from 0 to 12pm and the next day, another downtime is created. As @hamester_citti already explained, if you don’t need the downtime start/end notifications, remove them from your notification filters.
Cheers,
Michael
viper539
(Uwe)
August 19, 2019, 11:37am
4
Hello Colleagues,
i’m not very happy with this solution, but i see no other option.
@dnsmichi Thank you for the explanation.
You can also define the types of notification in the user object.
…
types = [ Problem, Custom, Acknowledgement, Recovery, DowntimeStart, DowntimeEnd, DowntimeRemoved ]
…
That is not a solution for your problem, but possibly an alternative