You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
In Centreon 21.10
when the last servicegroup is disabled, we can't generate configuration file anymore.
error thrown by PHP :
`==> /var/log/php-fpm/centreon-error.log <==
[13-Dec-2021 16:01:31 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/servicegroup.class.php:183
Stack trace:
We found the culprit ! A service inheriting from a disabled template had been created in the meantime.
Too bad that it doesn't pop up a clearer error message. In addition, except if i miss something, it should not be possible to select a disabled template when creating a new host/service/contact...
I'm facing this issue too after upgrading from 3.4 to latest. I removed all disabled services/hosts/servicesgroup etc but nothing helps to generate the conf file
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
In Centreon 21.10
when the last servicegroup is disabled, we can't generate configuration file anymore.
error thrown by PHP :
`==> /var/log/php-fpm/centreon-error.log <==
[13-Dec-2021 16:01:31 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/servicegroup.class.php:183
Stack trace:
#0 /usr/share/centreon/www/class/config-generate/host.class.php(505): Servicegroup->generateObjects()
#1 /usr/share/centreon/www/class/config-generate/generate.class.php(232): Host->generateFromPollerId()
#2 /usr/share/centreon/www/class/config-generate/generate.class.php(264): 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/servicegroup.class.php on line 183`
The text was updated successfully, but these errors were encountered: