More checks for a special hostgroup



is it possible to set more service max_check_attempts for a specific hostgroup without writting a new service object?

I can’t find a good solution for this problem.

best regards


(Michael Friedrich) #2

With a condition inside the apply rules, this should be doable.

apply Service "..." {

  if ("more_check_attempts" in host.groups) {
    max_check_attempts = 10
  } else {
    max_check_attempts = 5




Thank you Michael, it works.