icingaweb2-module-director
icingaweb2-module-director copied to clipboard
User notification States not inherited from Template
When assigning a user with w template , the notification states are not inherited from the template
Expected Behavior
The stares should be listed in the user as "inhertited from <template_name>"
Current Behavior
state field is empty
Steps to Reproduce (for bugs)
- define a notification/user template
- assign states
- define a basic user definition
- assign the template
Your Environment
-
Director version (System - About): Master
-
Icinga Web 2 version and modules (System - About): 2.4.1
-
Icinga 2 version (
icinga2 --version
): 2.6.3 -
Operating System and version: System information: Platform: CentOS Platform version: 6.9 (Final) Kernel: Linux Kernel version: 2.6.32-696.6.3.el6.x86_64 Architecture: x86_64
-
Webserver, PHP versions: Apache/2.2.15 (Unix) PHP 7.1.7
Related to #1144 ?
possibly, I have not tested host groups in my hosttemplates.
The problem affects users and notification templates. The states and transition types are not visibly inherited from the template. In the background the states and transition types from the template will be used (only when no states or transition types are set in the inheriting object).
This issue affects all MultiOptions files. This includes groups for hosts and services, notification states and transition types. Also custom files of type array are affected. The fix for issue #1144 is just a workaround in my opinion. The real problem of the missing inheritance is not solved.
Hey there, icinga2 -version: r2.10.2-1 Director - 1.5.2
also affected and a little bit annoying. I'm not so good at coding but please let me know if I can help in other ways - like testing etc.
Thanks, Ivan