Change Check Timeperiod for services

Hi @tom2,

Not sure if:
if (host.check_period) {
is a good way to program this
https://icinga.com/docs/icinga2/latest/doc/17-language-reference/#conditional-statements-ifelse
It seems to be valid syntax. So that is great.

We do other things with if else statements like this:

  if (host.vars.env == "DEV") {
     import "generic-service"
  } else if (host.vars.env == "PROD") {
     import "generic-service-wp"
  }

So I found this:

  if (host.check_period != "") {
    check_period = host.check_period
  }

Hope it will help you in the right direction :smiley: