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

Export configuration stuck on 0% #10818

Closed
1 of 4 tasks
TomT63 opened this issue Mar 4, 2022 · 2 comments
Closed
1 of 4 tasks

Export configuration stuck on 0% #10818

TomT63 opened this issue Mar 4, 2022 · 2 comments
Labels
status/new New tickets

Comments

@TomT63
Copy link

TomT63 commented Mar 4, 2022

BUG REPORT INFORMATION

Prerequisites

The opened issue, must be code related. GitHub is not meant for support. Feel free to check the CONTRIBUTING section for more details.

Versions

For the RPM based systems

-- Copy/Paste the result of the following command --

$ rpm -qa | grep centreon | egrep -v "(plugin|pack)" | sort

centreon-21.10.3-12.el7.centos.noarch
centreon-auto-discovery-server-21.10.1-1.el7.centos.noarch
centreon-base-config-centreon-engine-21.10.3-12.el7.centos.noarch
centreon-broker-21.10.1-5.el7.x86_64
centreon-broker-cbd-21.10.1-5.el7.x86_64
centreon-broker-cbmod-21.10.1-5.el7.x86_64
centreon-broker-core-21.10.1-5.el7.x86_64
centreon-broker-storage-21.10.1-5.el7.x86_64
centreon-clib-21.10.1-5.el7.x86_64
centreon-common-21.10.3-12.el7.centos.noarch
centreon-connector-21.10.1-5.el7.x86_64
centreon-connector-perl-21.10.1-5.el7.x86_64
centreon-connector-ssh-21.10.1-5.el7.x86_64
centreon-database-21.10.3-12.el7.centos.noarch
centreon-engine-21.10.1-5.el7.x86_64
centreon-engine-daemon-21.10.1-5.el7.x86_64
centreon-engine-extcommands-21.10.1-5.el7.x86_64
centreon-gorgone-21.10.2-1.el7.centos.noarch
centreon-gorgone-centreon-config-21.10.2-1.el7.centos.noarch
centreon-license-manager-21.10.0-1.el7.centos.noarch
centreon-license-manager-common-21.10.0-1.el7.centos.noarch
centreon-perl-libs-21.10.3-12.el7.centos.noarch
centreon-poller-centreon-engine-21.10.3-12.el7.centos.noarch
centreon-pp-manager-21.10.0-2.el7.centos.noarch
centreon-release-21.10-5.el7.centos.noarch
centreon-trap-21.10.3-12.el7.centos.noarch
centreon-web-21.10.3-12.el7.centos.noarch
centreon-widget-engine-status-21.10.0-3.el7.centos.noarch
centreon-widget-global-health-21.10.1-1.el7.centos.noarch
centreon-widget-graph-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-grid-map-21.10.0-2.el7.centos.noarch
centreon-widget-hostgroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-host-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-httploader-21.10.0-3.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-21.10.0-2.el7.centos.noarch
centreon-widget-live-top10-memory-usage-21.10.0-2.el7.centos.noarch
centreon-widget-servicegroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-service-monitoring-21.10.1-1.el7.centos.noarch
centreon-widget-tactical-overview-21.10.0-2.el7.centos.noarch

Operating System

CentOS 7

Browser used

  • Google Chrome
  • Firefox
  • Internet Explorer IE11
  • Safari

Version: --

21.10.3

Description

When I want export a configuration on central poller, file generation is blocked at 0%.

Steps to Reproduce

Please describe precisely the steps to reproduce the encountered issue.

  1. I logged in Centreon
  2. Go in Configuration->Poller->Export configuration. I check Move the generated files and restart
  3. Stuck on 0%

Logs

PHP error logs

For version using PHP 7.2 or 7.3 on centOs 8 or PHP 8

[04-Mar-2022 09:41:10 Europe/Paris] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /usr/share/centreon/www/class/config-generate/hostgroup.class.php:98
Stack trace:
#0 /usr/share/centreon/www/class/config-generate/host.class.php(504): Hostgroup->generateObjects()
#1 /usr/share/centreon/www/class/config-generate/generate.class.php(257): Host->generateFromPollerId()
#2 /usr/share/centreon/www/class/config-generate/generate.class.php(290): Generate->configPoller()
#3 /usr/share/centreon/www/include/configuration/configGenerate/xml/generateFiles.php(161): Generate->configPollerFromId()
#4 {main}
thrown in /usr/share/centreon/www/class/config-generate/hostgroup.class.php on line 98

@TomT63 TomT63 added the status/new New tickets label Mar 4, 2022
@s-duret
Copy link
Contributor

s-duret commented Mar 7, 2022

Hi,
Can you check if you have disabled hostgroups?
Also, do you have disabled host/services templates?
Regards

@TomT63
Copy link
Author

TomT63 commented Mar 7, 2022

Hi,

I have reactivated the hostgroups who has been disabled.
Now, the export work.

Thanks for your help.

Regards.

@TomT63 TomT63 closed this as completed Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/new New tickets
Projects
None yet
Development

No branches or pull requests

2 participants