Hello together,
if the Check Timeperiod at a host is for example: 06:00_bis_19:00_5_Tage, we are able to take over the the Check Timeperiod for for the ping test:
root@icinga_server:~# cat /etc/icinga2/conf.d/services.conf
…
apply Service “ping4” {
import “generic-service”check_command = "ping4" if (host.check_period) { check_period = host.check_period } else { check_period = "24x7" }
…
But we are not able to take over the Check Timeperiod from the host to the other services.
We tried in different configfiles and in the director. But either it has no effect or just a temporary effect.
It would be great if someone could tell us how to go about this.
Thanks and Greetings