centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

graphical issues when adding LDAP server and for selecting collector on config export #8902

Open NicolasAili opened 4 years ago

NicolasAili commented 4 years ago

--> Hi, I have the following issues:

I wanted to add users from my active directory and it failed (probably due to a problem of configuration that i did). I've deleted my LDAP server from centreon and tried to create it again with different parameters. But my issue is that the field "LDAP server" is empty and i cannot edit it although it was previouly possible. Furthermore, i have the same kind of issue when i want to export my configuration: in the field where i'm supposed to select my collector, nothing appears and it stays empty.

I thought I've modified something cause it was perfectly working in the past, but i've done nothing except a failed LDAP users import (no users showed up)

I've tried to change browser, disable extensions, reboot server, zoom in/out

View the attached files to see how it looks like

centreon1 centreon2

BUG REPORT INFORMATION

Versions

For the RPM based systems

centreon-widget-hostgroup-monitoring-20.04.0-5.el7.centos.noarch centreon-release-20.04-1.el7.centos.noarch centreon-license-manager-common-20.04.2-1.el7.centos.noarch centreon-plugin-Applications-Monitoring-Centreon-Map4-Jmx-20200803-072952.el7.centos.noarch centreon-plugin-Applications-Protocol-Dns-20200803-072952.el7.centos.noarch centreon-plugin-Operatingsystems-Windows-Snmp-20200803-072952.el7.centos.noarch centreon-widget-engine-status-20.04.1-1.el7.centos.noarch centreon-connector-ssh-20.04.0-2.el7.centos.x86_64 centreon-gorgone-20.04.3-1.el7.centos.noarch centreon-broker-20.04.7-1.el7.centos.x86_64 centreon-common-20.04.4-6.el7.centos.noarch centreon-widget-service-monitoring-20.04.3-3.el7.centos.noarch centreon-plugin-Applications-Monitoring-Centreon-Central-20200803-072952.el7.centos.noarch centreon-engine-extcommands-20.04.4-1.el7.centos.x86_64 centreon-plugin-Operatingsystems-Linux-Snmp-20200803-072952.el7.centos.noarch centreon-web-20.04.4-6.el7.centos.noarch centreon-20.04.4-6.el7.centos.noarch centreon-widget-servicegroup-monitoring-20.04.0-5.el7.centos.noarch centreon-widget-grid-map-20.04.0-5.el7.centos.noarch centreon-widget-live-top10-cpu-usage-20.04.0-5.el7.centos.noarch centreon-connector-20.04.0-2.el7.centos.x86_64 centreon-broker-core-20.04.7-1.el7.centos.x86_64 centreon-broker-cbd-20.04.7-1.el7.centos.x86_64 centreon-plugin-Applications-Monitoring-Centreon-Database-20200803-072952.el7.centos.noarch centreon-gorgone-centreon-config-20.04.3-1.el7.centos.noarch centreon-plugin-Hardware-Printers-Generic-Snmp-20200803-072952.el7.centos.noarch centreon-auto-discovery-server-20.04.4-3.el7.centos.noarch centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp-20200803-072952.el7.centos.noarch centreon-plugin-Applications-Protocol-Ftp-20200803-072952.el7.centos.noarch centreon-base-config-centreon-engine-20.04.4-6.el7.centos.noarch centreon-widget-live-top10-memory-usage-20.04.0-5.el7.centos.noarch centreon-widget-tactical-overview-20.04.0-5.el7.centos.noarch centreon-widget-global-health-20.04.0-5.el7.centos.noarch centreon-broker-storage-20.04.7-1.el7.centos.x86_64 centreon-perl-libs-20.04.4-6.el7.centos.noarch centreon-broker-cbmod-20.04.7-1.el7.centos.x86_64 centreon-plugin-Applications-Protocol-Ldap-20200803-072952.el7.centos.noarch centreon-plugin-Applications-Databases-Mysql-20200803-072952.el7.centos.noarch centreon-plugin-Network-Cisco-Standard-Snmp-20200803-072952.el7.centos.noarch centreon-pp-manager-20.04.1-1.el7.centos.noarch centreon-trap-20.04.4-6.el7.centos.noarch centreon-plugin-Virtualization-VMWare-daemon-3.1.2-20200602093832.el7.centos.noarch centreon-poller-centreon-engine-20.04.4-6.el7.centos.noarch centreon-widget-graph-monitoring-20.04.0-5.el7.centos.noarch centreon-clib-20.04.0-7.el7.centos.x86_64 centreon-database-20.04.4-6.el7.centos.noarch centreon-engine-daemon-20.04.4-1.el7.centos.x86_64 centreon-plugin-Applications-Protocol-Http-20200803-072952.el7.centos.noarch centreon-engine-20.04.4-1.el7.centos.x86_64 centreon-license-manager-20.04.2-1.el7.centos.noarch centreon-plugin-Virtualization-Vmware2-Connector-Plugin-20200803-072952.el7.centos.noarch centreon-widget-httploader-20.04.0-5.el7.centos.noarch centreon-widget-host-monitoring-20.04.4-4.el7.centos.noarch centreon-plugin-Applications-Monitoring-Centreon-Poller-20200803-072952.el7.centos.noarch centreon-connector-perl-20.04.0-2.el7.centos.x86_64

Browser used

Version: --

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

Centreon is running on ESXi

Steps to Reproduce

Please describe precisely the steps to reproduce the encountered issue.

  1. I logged in Centreon
  2. I reached the Custom View
  3. And so on...

Describe the received result

Describe the expected result

Logs

PHP error logs

tail -f /var/opt/rh/rh-php71/log/php-fpm/centreon-error.log

[11-Aug-2020 09:40:21 Europe/Paris] PHP Warning: Smarty error: unable to read resource: "file:/www/include/common/templates/clone.ihtml" in /usr/share/centreon/vendor/smarty/smarty/libs/Smarty.class.php on line 1100 [11-Aug-2020 09:41:06 Europe/Paris] PHP Warning: Smarty error: unable to read resource: "file:/www/include/common/templates/clone.ihtml" in /usr/share/centreon/vendor/smarty/smarty/libs/Smarty.class.php on line 1100 [11-Aug-2020 09:42:37 Europe/Paris] PHP Warning: Smarty error: unable to read resource: "file:/www/include/common/templates/clone.ihtml" in /usr/share/centreon/vendor/smarty/smarty/libs/Smarty.class.php on line 1100 [11-Aug-2020 09:45:35 Europe/Paris] PHP Notice: Undefined index: x-centreon-token in /usr/share/centreon/www/lib/HTML/QuickForm/HTML_QuickFormCustom.php on line 119 [11-Aug-2020 09:45:35 Europe/Paris] PHP Warning: in_array() expects parameter 2 to be array, null given in /usr/share/centreon/www/lib/HTML/QuickForm/HTML_QuickFormCustom.php on line 119 [11-Aug-2020 09:45:35 Europe/Paris] PHP Notice: Undefined index: x-centreon-token-generated-at in /usr/share/centreon/www/lib/HTML/QuickForm/HTML_QuickFormCustom.php on line 152 [11-Aug-2020 09:45:35 Europe/Paris] PHP Warning: Invalid argument supplied for foreach() in /usr/share/centreon/www/lib/HTML/QuickForm/HTML_QuickFormCustom.php on line 152 [11-Aug-2020 09:46:01 Europe/Paris] PHP Warning: Smarty error: unable to read resource: "file:/www/include/common/templates/clone.ihtml" in /usr/share/centreon/vendor/smarty/smarty/libs/Smarty.class.php on line 1100 [11-Aug-2020 10:14:08 Europe/Paris] PHP Warning: Smarty error: unable to read resource: "file:/www/include/common/templates/clone.ihtml" in /usr/share/centreon/vendor/smarty/smarty/libs/Smarty.class.php on line 1100 [11-Aug-2020 10:14:52 Europe/Paris] PHP Warning: Smarty error: unable to read resource: "file:/www/include/common/templates/clone.ihtml" in /usr/share/centreon/vendor/smarty/smarty/libs/Smarty.class.php on line 1100

Others logfiles didnt show anything special except for centcore which it's written that there is no file named "centcore". I think i've also an issue with centcore:

[root@localhost ~]# systemctl status centcore Unit centcore.service could not be found. [root@localhost ~]# systemctl start centcore Failed to start centcore.service: Unit not found.

lpinsivy commented 4 years ago

Hi,

You use Centreon 20.04 but you are still using PHP7.1 and not PHP 7.2, do you updated your platform from previous version? More over, Centcore was replaced by Centreon Gorgone (systemctl status gorgoned).

Finally, you can't edit your LDAP server because you have a PHP error: /www/include/common/templates/clone.ihtml Did you perform some stuff on your server? How did you remove your previous LDAP configuration?

iv-dess commented 4 years ago

Hello, I have the same problem and I'm using php 7.2. I'm using centreon 20.04.5. Is there a way to clear some cache or something ?

I'll try update to 20.04.6 on monday.

lpinsivy commented 4 years ago

Hi @iv-dess did you perform a fresh installation or an update?