I search about this topic but I didn’t found anything so If there is another thread about this my apologizes.
I have an error in my Centreon Central installation. The version is 24.10.12. I updated trying to resolve the issue but it persists.
The error appears when I tried to create a new input or output on a broker configuration and it has a RRD field.
I have tried with Unified SQL and RRD file generator and both of them fails. The first due to ‘length’ parameter is missing and the second due to RRD file directory for metrics.
If I modify the central-broker.json and add the output manually there is no problem at least until I export the configuration.
I tried to do an insert into in database (keep calm I did an snapshot, I know this is not an option) but It doesnt work properly because It appears without name like this.
So anyone has any idea how to resolve? I installed a new Centreon in a new machine and It works properly.
I would like to say this Centreon comes from v18 or v19. I upgrade to v22 and after that v23 and v24. I didnt see anything related to the error on logs.
I could provide any information that you need to resolve.
Page 1 / 1
Hello @Egoitz ,
Are the fields which cause error empty?
length field match this onemetric_path match this one
From the Centreon UI, can you go to Administration > Parameters > Options page and check if the fields are not empty?
Especially :
Path to RRDTool Database For Metrics
Retention duration for performance data in RRDTool databases
For what i understand, this fields can only be set on this page, and their values are then automatically fetch in the broker config
If you have this errors, it means the config cannot get any value, so maybe in the update process, some fields lost their values
Hope it helps
@vcoum Hi!
Thank you for the reply.
I followed your instructions and I think I found root error. I went to Administration > Parameters > Options and it is a blank page.
So I think the problem is not in the bdd. I am going to compare the last Centreon update (/usr/share/centreon) with my Centreon.
If you think the problem is other please tell me.
Try to open the browser console, in the network tab, and retry to go on the Administration > Parameters > Options page
Check if you find some errors
Also, check the Apache2 and PHP logs
The pages used for this form are located in the /usr/share/centreon/www/include/Administration/parameters/centstorage/ folder (maybe there is other files somewhere else)
@vcoum I didnt see anything on the apache log.
On the Php log I found that:
22-Sep-2025 17:00:15 Europe/Madrid] PHP Warning: Undefined variable $sessionKeyFreeze in /usr/share/centreon/www/include/Administration/parameters/general/form.php on line 311 [22-Sep-2025 17:00:24 Europe/Madrid] PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, bool given in /usr/share/centreon/www/include/Administration/parameters/centstorage/form.php:48 Stack trace: #0 /usr/share/centreon/www/include/Administration/parameters/centstorage/form.php(48): array_map() #1 /usr/share/centreon/www/include/Administration/parameters/parameters.php(77): require_once('...') #2 /usr/share/centreon/www/main.get.php(302): include_once('...') #3 {main} thrown in /usr/share/centreon/www/include/Administration/parameters/centstorage/form.php on line 48
Okay it seems there is a problem in the PHP process
Connect to your centreon database and use this query
SELECT * FROM centreon_storage.config LIMIT 1;
You should have a result who look like this
If you have an empty set, this is the cause of your problem
In case of empty set, you can populate the table with this commande (i took it from my lab Centreon 24.10)
use centreon_storage; INSERT INTO `config` VALUES (1,'/var/lib/centreon/metrics/','/var/lib/centreon/status/','/var/lib/centreon/nagios-perf/',180,365,'0',10,20,NULL,NULL,'0',31,365,'/var/log/centreon-engine/centengine.log.log',0,'1',0,0,0);
And your Options page should work
@vcoum I spent a lot of time trying to resolve this problem and you did it in less than an hour. Great!!
Thank you guy! Now I can create an Unified SQL and RRD File Generator.
I have a last question. Should there are more lines at config table? I mean it could be possible I have more errors like that and I dont know why. I can compare new centreon database against production database but I would like to know your opinion.
I promise I won’t disturb you more times.
@Egoitz I’m glad it worked ! 😁
For your question, it seems there is always one lines in the config table (i checked on other Centreon platform), so your table config is at normal state now