Hi,

If you want to move from static configuration files to icinga director you have to manually delete the config file (/etc/icinga2/zones.d/global-templates/users.conf in this case), configure the objects in icinga director and then do a deployment via icinga director.

Best
Tobias

On 2017-03-14 06:06, Ankush Grover wrote:
Hi Friends,

Any update related to my problem? Its more of how to import, sync and
deploy the existing hosts from Icinga to Icinga Director.

Thanks & Regards

Ankush Grover

On Tue, Mar 7, 2017 at 4:02 PM, Ankush Grover <ankushcen...@gmail.com>
wrote:

Hi Friends,

I am running Icinga2 version: 2.6.2-1, Icingaweb2 version: 2.4.1-1
and director: 1.3.1 on Centos 7 64-bit. There are already some hosts
running in Icinga2 along with some services, templates, user groups,
users, notifications templates. The issue I am facing is that
whenever I tried to deploy the changes/config file after syncing the
usergroups through the API, it complains that the UserGroup is
already re-defined. How can I deploy the changes without any issues
in the director??

critical/config: Error: Object 'icingaadmins' of type 'UserGroup'
re-defined: in [stage]/zones.d/config-ha-master/usergroups.conf:
1:0-1:30; previous definition: in
/etc/icinga2/zones.d/global-templates/users.conf: 75:1-75:31
Location: in [stage]/zones.d/config-ha-master/usergroups.conf:
1:0-1:30
[stage]/zones.d/config-ha-master/usergroups.conf(1): object
UserGroup "icingaadmins" {

                                                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/config-ha-master/usergroups.conf(2):     import
"icingaadmins"
[stage]/zones.d/config-ha-master/usergroups.conf(3):

Do let me know if you need any further information.

Thanks & Regards

Ankush Grover


_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

--
Regards
Tobias
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to