From f87b07d5a4b35cd77a3fbf09ad3888d029fed40c Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 14 Aug 2023 18:46:46 +0200 Subject: [PATCH] parent_affecting_logging: a group affects everything in it --- lib/icinga/host.ti | 2 +- lib/icinga/hostgroup.ti | 2 +- lib/icinga/service.ti | 2 +- lib/icinga/servicegroup.ti | 2 +- lib/icinga/user.ti | 2 +- lib/icinga/usergroup.ti | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/icinga/host.ti b/lib/icinga/host.ti index f6624e30764..f674220fdd3 100644 --- a/lib/icinga/host.ti +++ b/lib/icinga/host.ti @@ -15,7 +15,7 @@ class Host : Checkable load_after Endpoint; load_after Zone; - [config, no_user_modify, required, signal_with_old_value] array(name(HostGroup)) groups { + [config, no_user_modify, required, signal_with_old_value, parent_affecting_logging] array(name(HostGroup)) groups { default {{{ return new Array(); }}} }; diff --git a/lib/icinga/hostgroup.ti b/lib/icinga/hostgroup.ti index b679344aabd..600240e8500 100644 --- a/lib/icinga/hostgroup.ti +++ b/lib/icinga/hostgroup.ti @@ -19,7 +19,7 @@ class HostGroup : CustomVarObject }}} }; - [config, no_user_modify] array(name(HostGroup)) groups; + [config, no_user_modify, parent_affecting_logging] array(name(HostGroup)) groups; [config] String notes; [config] String notes_url; [config] String action_url; diff --git a/lib/icinga/service.ti b/lib/icinga/service.ti index 12c2d8c66c9..4be5b4c70a3 100644 --- a/lib/icinga/service.ti +++ b/lib/icinga/service.ti @@ -27,7 +27,7 @@ class Service : Checkable < ServiceNameComposer load_after Host; load_after Zone; - [config, no_user_modify, required, signal_with_old_value] array(name(ServiceGroup)) groups { + [config, no_user_modify, required, signal_with_old_value, parent_affecting_logging] array(name(ServiceGroup)) groups { default {{{ return new Array(); }}} }; diff --git a/lib/icinga/servicegroup.ti b/lib/icinga/servicegroup.ti index 7daf9d419b3..edc1d35b700 100644 --- a/lib/icinga/servicegroup.ti +++ b/lib/icinga/servicegroup.ti @@ -19,7 +19,7 @@ class ServiceGroup : CustomVarObject }}} }; - [config, no_user_modify] array(name(ServiceGroup)) groups; + [config, no_user_modify, parent_affecting_logging] array(name(ServiceGroup)) groups; [config] String notes; [config] String notes_url; [config] String action_url; diff --git a/lib/icinga/user.ti b/lib/icinga/user.ti index 8b8c43a14d4..a89765bc7b0 100644 --- a/lib/icinga/user.ti +++ b/lib/icinga/user.ti @@ -20,7 +20,7 @@ class User : CustomVarObject return displayName; }}} }; - [config, no_user_modify, required, signal_with_old_value] array(name(UserGroup)) groups { + [config, no_user_modify, required, signal_with_old_value, parent_affecting_logging] array(name(UserGroup)) groups { default {{{ return new Array(); }}} }; [config, navigation] name(TimePeriod) period (PeriodRaw) { diff --git a/lib/icinga/usergroup.ti b/lib/icinga/usergroup.ti index e955c5e5ed1..8605cd74e4f 100644 --- a/lib/icinga/usergroup.ti +++ b/lib/icinga/usergroup.ti @@ -19,7 +19,7 @@ class UserGroup : CustomVarObject }}} }; - [config, no_user_modify] array(name(UserGroup)) groups; + [config, no_user_modify, parent_affecting_logging] array(name(UserGroup)) groups; }; }