Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Export clapi duplicates contacts #8292

Open
thezipman opened this issue Jan 28, 2020 · 0 comments
Open

Export clapi duplicates contacts #8292

thezipman opened this issue Jan 28, 2020 · 0 comments

Comments

@thezipman
Copy link

BUG REPORT INFORMATION

Prerequisites

Versions

19.10 up to date

centreon-poller-centreon-engine-19.10.5-2.el7.centos.noarch
centreon-widget-tactical-overview-19.10.0-1.el7.centos.noarch
centreon-license-manager-common-19.10.0-1.el7.centos.noarch
centreon-broker-storage-19.10.2-1.el7.centos.x86_64
centreon-engine-19.10.9-1.el7.centos.x86_64
centreon-widget-hostgroup-monitoring-19.10.0-1.el7.centos.noarch
centreon-connector-19.10.0-1.el7.centos.x86_64
centreon-release-19.10-1.el7.centos.noarch
centreon-database-19.10.5-2.el7.centos.noarch
centreon-widget-global-health-19.10.0-1.el7.centos.noarch
centreon-awie-19.10.0-1.el7.centos.noarch
centreon-widget-grid-map-19.10.0-1.el7.centos.noarch
centreon-connector-ssh-19.10.0-1.el7.centos.x86_64
centreon-broker-cbd-19.10.2-1.el7.centos.x86_64
centreon-plugins-base-1.18-2.el7.centos.noarch
centreon-widget-graph-monitoring-19.10.0-1.el7.centos.noarch
centreon-19.10.5-2.el7.centos.noarch
centreon-widget-engine-status-19.10.0-1.el7.centos.noarch
centreon-open-tickets-19.10.0-1.el7.centos.noarch
centreon-trap-19.10.5-2.el7.centos.noarch
centreon-clib-19.10.0-6.el7.centos.x86_64
centreon-web-19.10.5-2.el7.centos.noarch
centreon-widget-live-top10-memory-usage-19.10.0-1.el7.centos.noarch
centreon-connector-perl-19.10.0-1.el7.centos.x86_64
centreon-common-19.10.5-2.el7.centos.noarch
centreon-auto-discovery-server-19.10.1-4.el7.centos.noarch
centreon-cwrapper-perl-0.1-1.el7.centos.x86_64
centreon-widget-servicegroup-monitoring-19.10.0-1.el7.centos.noarch
centreon-broker-cbmod-19.10.2-1.el7.centos.x86_64
centreon-widget-live-top10-cpu-usage-19.10.0-1.el7.centos.noarch
centreon-widget-service-monitoring-19.10.1-1.el7.centos.noarch
centreon-pp-manager-19.10.0-5.el7.centos.noarch
centreon-engine-daemon-19.10.9-1.el7.centos.x86_64
centreon-engine-bench-19.10.9-1.el7.centos.x86_64
centreon-open-tickets-module-19.10.0-1.el7.centos.noarch
centreon-broker-19.10.2-1.el7.centos.x86_64
centreon-engine-extcommands-19.10.9-1.el7.centos.x86_64
centreon-widget-httploader-19.10.0-1.el7.centos.noarch
centreon-perl-libs-19.10.5-2.el7.centos.noarch
centreon-base-config-centreon-engine-19.10.5-2.el7.centos.noarch
centreon-open-tickets-widget-19.10.0-1.el7.centos.noarch
centreon-license-manager-19.10.0-1.el7.centos.noarch
centreon-broker-core-19.10.2-1.el7.centos.x86_64
centreon-widget-host-monitoring-19.10.0-1.el7.centos.noarch

Operating System

CentOS Linux release 7.7.1908 (Core)
Linux centreon 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Additional environment details (AWS, VirtualBox, physical, etc.):

Virtual machine con VMware vSphere 6.7U3 installed with official ISO and updated from 2.28 to 18.10, 19.04 and 19.10.

-- Describe the encountered issue --

  1. create some contact
  2. export centreon configuration using clapi:
    /usr/share/centreon/bin/centreon -u admin -p cesadmin -e > /tmp/backup.clapi
  3. check the output of the export and the number of contacts added:
    grep '^CONTACT;ADD;' backup.clapi | sort | uniq -c

Describe the received result

$ grep '^CONTACT;ADD;' backup.clapi | sort | uniq -c
     78 CONTACT;ADD;Admin_company;admin;name.surname@company.com;md5__000000000000000061e3d1758061d467;1;1;browser;local
     78 CONTACT;ADD;Guest;guest;name.surname@localhost;md5__0000000000000000e9800998ecf8427e;0;0;en_US;local
     78 CONTACT;ADD;User;user;name.surname@localhost;md5__0000000000000000e9800998ecf8427e;0;0;en_US;local
     78 CONTACT;ADD;User_1;user1;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
     78 CONTACT;ADD;User_2;user2;name.surname@company.com;md5__0000000000000000b44c1e08f453c7da;0;1;browser;ldap
     78 CONTACT;ADD;User_3;user3;name.surname@company.com;md5__0000000000000000fecc51a0e44ee2a9;0;1;browser;local
     78 CONTACT;ADD;User_4;user4;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
     78 CONTACT;ADD;User_5;user5;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
     78 CONTACT;ADD;User_6;user6;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
     78 CONTACT;ADD;User_7;user7;name.surname@company.com;md5__0000000000000000f1ad880e86bfc1fb;0;1;browser;local
     78 CONTACT;ADD;User_8;user8;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
     78 CONTACT;ADD;User_9;user9;name.surname@localhost;md5__00000000000000005ee01a0a9ba9f485;0;1;en_US;local
     78 CONTACT;ADD;User_10;user10;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
     78 CONTACT;ADD;User_11;user11;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
     78 CONTACT;ADD;User_12;user12;name.surname@company.com;md5__0000000000000000ab95714d9e93587f;0;1;browser;local
     78 CONTACT;ADD;User_13;user13;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
     78 CONTACT;ADD;User_14;user14;name.surname@company.com;md5__0000000000000000fb6e836180351a93;0;1;browser;local
     78 CONTACT;ADD;User_15;user15;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
     78 CONTACT;ADD;User_16;user16;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
     78 CONTACT;ADD;User_17;user17;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
     78 CONTACT;ADD;User_18;user18;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
     78 CONTACT;ADD;User_19;user19;sd-name.surname@sorint.it;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
     78 CONTACT;ADD;User_20;user20;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
     78 CONTACT;ADD;User_21;user21;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
     78 CONTACT;ADD;User_22;user22;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
     78 CONTACT;ADD;User_23;user23;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
     78 CONTACT;ADD;User_24;user24;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
     78 CONTACT;ADD;User_25;user25;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;local

Describe the expected result

      1 CONTACT;ADD;Admin_company;admin;name.surname@company.com;md5__000000000000000061e3d1758061d467;1;1;browser;local
      1 CONTACT;ADD;Guest;guest;name.surname@localhost;md5__0000000000000000e9800998ecf8427e;0;0;en_US;local
      1 CONTACT;ADD;User;user;name.surname@localhost;md5__0000000000000000e9800998ecf8427e;0;0;en_US;local
      1 CONTACT;ADD;User_1;user1;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
      1 CONTACT;ADD;User_2;user2;name.surname@company.com;md5__0000000000000000b44c1e08f453c7da;0;1;browser;ldap
      1 CONTACT;ADD;User_3;user3;name.surname@company.com;md5__0000000000000000fecc51a0e44ee2a9;0;1;browser;local
      1 CONTACT;ADD;User_4;user4;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
      1 CONTACT;ADD;User_5;user5;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
      1 CONTACT;ADD;User_6;user6;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
      1 CONTACT;ADD;User_7;user7;name.surname@company.com;md5__0000000000000000f1ad880e86bfc1fb;0;1;browser;local
      1 CONTACT;ADD;User_8;user8;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
      1 CONTACT;ADD;User_9;user9;name.surname@localhost;md5__00000000000000005ee01a0a9ba9f485;0;1;en_US;local
      1 CONTACT;ADD;User_10;user10;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
      1 CONTACT;ADD;User_11;user11;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
      1 CONTACT;ADD;User_12;user12;name.surname@company.com;md5__0000000000000000ab95714d9e93587f;0;1;browser;local
      1 CONTACT;ADD;User_13;user13;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
      1 CONTACT;ADD;User_14;user14;name.surname@company.com;md5__0000000000000000fb6e836180351a93;0;1;browser;local
      1 CONTACT;ADD;User_15;user15;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
      1 CONTACT;ADD;User_16;user16;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
      1 CONTACT;ADD;User_17;user17;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
      1 CONTACT;ADD;User_18;user18;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;1;1;browser;ldap
      1 CONTACT;ADD;User_19;user19;sd-name.surname@sorint.it;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
      1 CONTACT;ADD;User_20;user20;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
      1 CONTACT;ADD;User_21;user21;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
      1 CONTACT;ADD;User_22;user22;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
      1 CONTACT;ADD;User_23;user23;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;0;browser;local
      1 CONTACT;ADD;User_24;user24;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;ldap
      1 CONTACT;ADD;User_25;user25;name.surname@company.com;md5__0000000000000000e9800998ecf8427e;0;1;browser;local

Logs

Not relevants.

Additional relevant information (e.g. frequency, ...)

I noticed this problem today, but the problem is present at least since 2.28.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant