We have a service that is shutdown during the weekends and I scheduled downtime for that. However last weekend we noticed that all services of this server now have scheduled downtime instead of just that one service.
apply ScheduledDowntime "controlcenter-ignore" to Service {
author = "icingaadmin"
comment = "Scheduled downtime for process Control Center Service"
ranges = {
friday = "23:00-24:00"
saturday = "00:00-24:00"
sunday = "00:00-23:00"
}
assign where host.vars.remote_procs["Process: Control Center Service"].procs_command == "ControlCenter.exe"
}
Your code applies the SD to all services with host.vars.remote_procs["Process: Control Center Service"].procs_command == "ControlCenter.exe". It doesn’t difference the services of a host from each other. Maybe you’d like something like host.vars.remote_procs["Process: Control Center Service"].procs_command == "ControlCenter.exe" && service.name == "disk"?