Centreon 22.04.01 - Service check results not visibles in web interface
Hello.
Since the last updating of our centreon platform (IT-100, 22.04.1), some service checks are no longer visible in Ressources Status view. In addition, the number of services checked reported is not correct: 605 instead of 854.
In “Configuration > Services > Services by host” all services are present and enabled.
In centengine.log, I saw Warning and Critical check result not reported in web interface.
Manual execution of check missing is ok.
Disk space is ok.
What could be the problem ?
Best regards,
Eric
Page 1 / 1
Hi Eric,
Have you tried to export configuration and restart cbd and centengine since the update?
Kind regards.
Helllo cmeschin.
Thank’s to reply to my topic.
Yes. Entire server restarted a lot of time since the problem appeared. And configuration has been exported many time aswell.
What it is very strange is that the number of services checked reported is not the same at each export… Today, I have 743 services (“only” 111 are missing)
Can you send me, please:
a screenshot of service status deployed in top right of UI to clearly understand where are 743 services
screenshot of “Configuration > Poller” page (anonymised)
Have you some services with particular timeperiods (not 24x7) who should be in SOFT state and not reschedule yet? If yes, try to force check.
Eureka!
I’ve found the problem!
2 versions of PHP are installed on this server and each has php-fpm processes launched (they had a different listening port). I just killed the old one (PHP 7.2) and everything is all right now.
Good to know...
Ah bein non ! The number of services decreased again to... 578 :-(
Instead of 854 services enabled:
Here is the screenshot of “Configuration > Poller” :
And no, all our services are in 24x7.
Hi,
Can you send me the result of these commands, please?
It seems ok by this side. the last update was done since which version?
On 22.04, only php 8.0 must be enabled.
Can you run this command,please?
systemctl list-unit-files | grep -i php
and
ps -ef | grep -i php
Regards
22.04.03 was installed over 22.04.01.
Here are the results:
systemctl list-unit-files | grep -i php
ps -ef | grep -i php
In addition, here are the PHP installed packages:
yum list installed | grep -i php
Have you some errors in centreon-broker logs, enable debug for sql and bbdo if needed
Be careful, because it is very verbose.
You need to export configuration to take effect.
I turned on debug on SQL and BBDO logs but no specific problem came out. Checks are performed and committed without error.
Now, I put this logs back in ERROR view and I can see these errors:
[2022-08-29T17:08:24.040+02:00] [sql] [info] SQL: processing log of poller 'Central' generated at 1661785703 (type 5) [2022-08-29T17:08:24.040+02:00] [sql] [info] SQL: processing log of poller 'Central' generated at 1661785703 (type 5) [2022-08-29T17:08:24.040+02:00] [sql] [info] SQL: processing log of poller 'Central' generated at 1661785703 (type 5) [2022-08-29T17:08:24.040+02:00] [sql] [info] SQL: processing log of poller 'Central' generated at 1661785703 (type 5) [2022-08-29T17:08:24.725+02:00] [core] [info] main: configuration update requested [2022-08-29T17:08:24.725+02:00] [core] [info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/50-tcp.so' which is already loaded [2022-08-29T17:08:24.725+02:00] [core] [info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/20-unified_sql.so' which is already loaded [2022-08-29T17:08:24.725+02:00] [core] [info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/15-stats.so' which is already loaded [2022-08-29T17:08:24.726+02:00] [core] [info] multiplexing: engine started [2022-08-29T17:08:30.261+02:00] [sql] [error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 >2022-08-29T17:09:00.162+02:00] sql] error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 /2022-08-29T17:09:05.176+02:00] ]sql] ]error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 2022-08-29T17:09:15.299+02:00] 0perfdata] aerror] In service (176:1731), metric name empty before 'd=''...' 2022-08-29T17:09:15.299+02:00] 0perfdata] aerror] invalid perfdata format in service (176:1731): equal sign not present or misplaced '' 2022-08-29T17:09:40.366+02:00] 0perfdata] aerror] In service (176:1729), metric name empty before 'entag0...' 2022-08-29T17:09:40.366+02:00] 0perfdata] aerror] invalid perfdata format in service (176:1729): equal sign not present or misplaced '' 2022-08-29T17:09:50.390+02:00] 0perfdata] aerror] In service (93:1052), metric name empty before '24'=20...' 2022-08-29T17:09:50.390+02:00] 0perfdata] aerror] invalid perfdata format in service (93:1052): equal sign not present or misplaced '' 2022-08-29T17:09:50.393+02:00] 0sql] lerror] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 r2022-08-29T17:10:00.215+02:00] 0sql] qerror] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 b2022-08-29T17:10:10.238+02:00] :perfdata] aerror] In service (176:1728), metric name empty before '��0...' .2022-08-29T17:10:10.238+02:00] 8perfdata] eerror] invalid perfdata format in service (176:1728): equal sign not present or misplaced '' 2022-08-29T17:10:30.297+02:00] 7perfdata] eerror] In service (115:1091), metric name empty before 'ns'10...' .2022-08-29T17:10:30.297+02:00] 7perfdata] eerror] invalid perfdata format in service (115:1091): equal sign not present or misplaced '' 2022-08-29T17:10:30.299+02:00] 9sql] 0error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 o2022-08-29T17:10:50.351+02:00] 5perfdata] perror] In service (115:1089), metric name empty before 't='' 0...' .2022-08-29T17:10:50.351+02:00] 5perfdata] perror] invalid perfdata format in service (115:1089): equal sign not present or misplaced '' d2022-08-29T17:11:25.251+02:00] 5perfdata] perror] In service (115:1088), metric name empty before '��0...' 2022-08-29T17:11:25.251+02:00] 2perfdata] 0error] invalid perfdata format in service (115:1088): equal sign not present or misplaced '' l2022-08-29T17:12:50.388+02:00] 5perfdata] 0error] In service (93:1055), metric name empty before 'atus0...' t2022-08-29T17:12:50.388+02:00] 5perfdata] 0error] invalid perfdata format in service (93:1055): equal sign not present or misplaced '' l2022-08-29T17:12:55.403+02:00] 5sql] +error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 2022-08-29T17:13:00.127+02:00] :sql] 7error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 '2022-08-29T17:13:10.151+02:00] 3sql] 5error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 r2022-08-29T17:13:30.205+02:00] 1sql] 2error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 e2022-08-29T17:14:00.194+02:00] :sql] .error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 b2022-08-29T17:14:05.209+02:00] 7sql] 5error] mysql_connection: could not store service status: Out of range value for column 'notification_number' at row 1 m2022-08-29T17:14:15.235+02:00] 1perfdata] 5error] In service (176:1731), metric name empty before '0...' 2022-08-29T17:14:15.235+02:00] 1perfdata] 5error] invalid perfdata format in service (176:1731): equal sign not present or misplaced '' r2022-08-29T17:14:40.305+02:00] 1perfdata] 5error] In service (176:1729), metric name empty before '��0...' e2022-08-29T17:14:40.305+02:00] -perfdata] 0error] invalid perfdata format in service (176:1729): equal sign not present or misplaced ''
No specific errors in Broker logs after activation of DEBUG view for SQL and BDDO. Checks are performed and committed normally.
Now, I put these logs back in ERROR view and I can see these errors:
Hi,
Here is the error.
We have recently a similar issue with another customer.
The field “notification_number” is a smallint and in some cases it can be too small.
You can update the fields on centreon_storage database with this query:
ALTER TABLE centreon_storage.hosts MODIFY notification_number integer;
and
ALTER TABLE centreon_storage.services MODIFY notification_number integer;
After this modification, services should be displayed correctly.
For errors on perfdata, it's not blocking but I encourage you to check what comes back from the plugins and to filter invalid metrics with the "--filter-perfdata" option in order to improve the performance of the broker side processing.
Kind regards
Hi.
You are the best !
After execution of your 2 commands in MariaDB, all services checks enabled are now visible in the UI.
Problem solved, thank you.
To be transparent, two fixes are in progress regarding the issue :
The size of these columns are about to be changed to avoid such errors in the future.
Broker’s handling for this type of error is being improved to avoid being impacted to that extent by such errors.
To be transparent, two fixes are in progress regarding the issue :
The size of these columns are about to be changed to avoid such errors in the future.
Broker’s handling for this type of error is being improved to avoid being impacted to that extent by such errors.
Hello,
About this problem, does the version 22.04.7 or another version fix this problem ?
Hi @Cyril_31
The first fix has been released in centreon-web 22.04.6 and is referred to as “sCore] Improved database storage to avoid blocking Broker when maximum values are reached”
The second one has not been released yet but will likely be part of centreon-collect 22.04.2 and should be available in the next couple of weeks.
EDIT: the first fix is enough to avoid the issue.
can you help me? Why is centren don’t active
@Minh873 I don’t think your screenshot is linked to the subject. Please open a new thread where you will explain:
What version of Centreon you are using
How you installed your platform (OVA, packages, ...) and on what Linux distribution
What type of user (admin, ACL) are your logged in with