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

Problem after update to 18.10 #6949

Closed
und3ath opened this issue Nov 7, 2018 · 10 comments
Closed

Problem after update to 18.10 #6949

und3ath opened this issue Nov 7, 2018 · 10 comments

Comments

@und3ath
Copy link

und3ath commented Nov 7, 2018

Hi . After upgrading centreon to 18.10.0 and upgraded remote poller according to the documentation we cannot generate configuration for the poller .
When we click on generate configuration file , it stuck at 0% and nothing is done.


BUG REPORT INFORMATION

Centreon Web version: 28.10.0

Centreon Engine version: 28.10.0

Centreon Broker version: 28.10.0

OS: Centos 7

@ebourgui
Copy link

ebourgui commented Nov 7, 2018

Hi. I've had the same problem. I cleared my webbrowser's cache and now it works!

@und3ath
Copy link
Author

und3ath commented Nov 7, 2018

thanks , it's seems to work now , but it take up to 3min to generate configurations files .

@lpinsivy
Copy link
Contributor

lpinsivy commented Nov 7, 2018

@ebourgui @und3ath thank you for your feedback.

So everything works correctly now?

@und3ath
Copy link
Author

und3ath commented Nov 7, 2018

No, sometimes it take few minutes and generate configs files with success , sometime it get stuck at 0% .

We have 9 pollers only one for now is upgraded to 18.10.0 . This strange behaviour is present on updated and non updated pollers and on the central too .

test

@und3ath
Copy link
Author

und3ath commented Nov 8, 2018

It seems to be working using clapi to generate, move and reload poller ;
the timestamp of file are updated under /usr/share/centreon/filesGeneration.
Otherwise if i generate config with web interface it seems files are not generated at all .

@und3ath
Copy link
Author

und3ath commented Nov 8, 2018

I figured out after reviewing the code under https://github.com/centreon/centreon/blob/master/www/include/configuration/configGenerate/xml/generateFiles.php#L110

A Fw rules has been modified and our ldap was not reachable . (timeout and breaking process)
After fixing firewall rules everything seems to work correctly now !

@wackou72
Copy link

Hello,
mine is also slow, when connecting to the webinterface, it take arround 10 sec or more to connect with an AD account.
Generating the conf take arround 20 sec/30 sec.

@jben94
Copy link

jben94 commented Nov 23, 2018

Hi,

It is the synchronization of information between LDAP and Centreon which is long. For me, it's 2 minutes !
In particular, the 'syncWithLdap()' function in the 'CentreonContactgroup' class. She will pick up all members of all groups to update Centreon.

it would be better to put this synchronization in crontab, no?

./class/centreonAuth.LDAP.class.php:                    $cgs->syncWithLdap();
./class/centreonContactgroup.class.php:    public function syncWithLdap()
./include/configuration/configGenerate/xml/generateFiles.php:    $cgObj->syncWithLdap();

@itsul
Copy link

itsul commented Nov 27, 2018

Hi,

I can confirm this, too.
But with Centreon 2.8.26 (Central + 8 Poller, 70k Services).
Export takes over 90 seconds, when I comment the syncWithLDAP function in generateFiles.php it goes down to 30. We must use nested ldap groups, so this might have also an performance impact.
I think it's a good idea, to undock it from the exporting function.

@lpinsivy
Copy link
Contributor

#7130

sc979 added a commit that referenced this issue Mar 20, 2019
* enh(ldap): optimize ldap sync at config generation (Fix #6949)
* fix(log): removing ldap error on password
* fix(log): removing ldap error when no dnContact found
* fix(ldap): error when no default contactgroup was chosen
* fix(ldap): broken PDO when the value is null
* enh(ldap): adding more precise error messages and commenting code
@sc979 sc979 closed this as completed in cb2dab1 Mar 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants