centreon/centreon-archived

Graphs aren't working after restoring centreon central server from Unitrends backup

Opened this issue · 0 comments

BUG REPORT INFORMATION

Versions

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

centreon-2.8.26-3.el6.noarch
centreon-base-config-centreon-engine-2.8.26-3.el6.noarch
centreon-broker-3.0.16-1.el6.x86_64
centreon-broker-cbd-3.0.16-1.el6.x86_64
centreon-broker-cbmod-3.0.16-1.el6.x86_64
centreon-broker-core-3.0.16-1.el6.x86_64
centreon-broker-storage-3.0.16-1.el6.x86_64
centreon-clib-1.4.2-1.el6.x86_64
centreon-common-2.8.26-3.el6.noarch
centreon-connector-1.1.3-1.el6.x86_64
centreon-connector-perl-1.1.3-1.el6.x86_64
centreon-connector-ssh-1.1.3-1.el6.x86_64
centreon-engine-1.8.1-1.el6.x86_64
centreon-engine-daemon-1.8.1-1.el6.x86_64
centreon-engine-extcommands-1.8.1-1.el6.x86_64
centreon-license-manager-1.1-5.el6.noarch
centreon-perl-libs-2.8.26-3.el6.noarch
centreon-poller-centreon-engine-2.8.26-3.el6.noarch
centreon-pp-manager-2.4.0-1.el6.noarch
centreon-release-3.4-4.el6.noarch
centreon-trap-2.8.26-3.el6.noarch
centreon-web-2.8.26-3.el6.noarch
centreon-widget-graph-monitoring-1.5.2-3.el6.noarch
centreon-widget-hostgroup-monitoring-1.6.0-1.el6.noarch
centreon-widget-host-monitoring-1.6.3-1.el6.noarch
centreon-widget-servicegroup-monitoring-1.6.1-1.el6.noarch
centreon-widget-service-monitoring-1.6.3-1.el6.noarch

Operating System

CentOS

Description

After restoring central server and poller from unitrends backup Graphs stopped working properly.
Checking rrd files showed that rrd files aren't updated with values after time of backup (backup was taken 8.04, at 6:01 pm):

image

No errors in /var/log/centreon-broker/central-rrd-master.log, but there are some in apache log:

[Tue May 10 08:44:03 2022] [error] [client 10.167.60.164] PHP Warning: simplexml_load_string(): ^ in /usr/share/centreon/www/class/centreonGraphService.class.php on line 229, referer:

Line 229 of this code:
image
$xml = simplexml_load_string($str);

Removing rrd files from status and metrics caused new rrd files to be completly filled with NaN values and no useful data.

All rights on directories and owners seems to be fine:

ls -l /var/lib/centreon/
total 696
drwxrwxr-x 2 centreon centreon 4096 Feb 15 2016 broker-stats
drwxrwxr-x. 2 centreon centreon 4096 May 10 06:46 centcore
drwxrwxr-x. 2 centreon centreon 4096 Feb 21 2020 centplugins
drwxrwxr-x. 10 centreon centreon 4096 Sep 12 2018 log
drwxrwxr-x. 2 centreon centreon 430080 May 10 09:40 metrics
drwxrwxr-x. 12 centreon centreon 4096 Sep 12 2018 nagios-perf
drwxrwxr-x. 10 centreon centreon 4096 Sep 12 2018 perfdata
drwxrwxr-x. 2 centreon centreon 229376 May 10 09:40 status

there are many queue data in /var/lib/centreon-broker, however removing them day before didn't cause graphs to start working.

Version of rrdtool: 1.4.7