Solved

Graphs 'There's no data' after upgrading to 23.04


Userlevel 2
Badge +3

Hi there,

I recently updated centreon from 23.02 to 23.04.

Now, all my graphs are stating that there is no data like so :

 

Can you please help me solving my issue ? =)

 

 

 

PS:

 I do not think it has anything to do with it, but I had to run this command for centreonweb to work :

/usr/share/centreon/bin/console cache:clear

 

I do have centreon-broker-master properly configured (I checked other posts solutions)

icon

Best answer by Laurent 12 July 2023, 08:45

View original

18 replies

Userlevel 2
Badge +3

I noticed something weird in central-broker-master.log :

 

 

Any help would be greatly appreciated ! Wishing you happy holidays if so

Userlevel 2
Badge +3

Figured out it was just punctual errors and the TCP connection is working.

RRD files are getting updated, other widgets are working as intended, for example :

Huh… It’s been 3 days of debugging and I can’t even get a clue of why it isn’t working. I’m starting to think I’ll have to start fresh and reinstall everything.

Userlevel 2
Badge +3

I would greatly appreciate any clue of what could be happening since I’ve ran out of ideas !

Userlevel 6
Badge +18

Hi @Yllake do you have enough space in /var/lib/centreon/metrics directory?

Can you check the //var/log/centreon-broker/central-rrd-master.log file?

Userlevel 2
Badge +3

Hi @Laurent ! Thanks for answering

 

I think I do have enough space available :

The ‘metrics-old’ folder is just a copy I made while trying to debug

 

As for central-rrd-master.log, everything seems fine except that one error I found :

 

“””

[core] [info] main: termination request received by process 405433
[core] [info] processing acceptor 'central-rrd-master-input' finished
[core] [info] bbdo stream stopped with 134 events acknowledged
[core] [info] Poller '' with id 0 just disconnected
[tcp] [info] TCP stream destroyed. Still 0 configured on a thread pool of 3 threads
[tcp] [debug] Finishing to write data before closing the connection
[core] [info] feeder: queue files of client 'central-rrd-master-input-1' removed
[core] [info] multiplexing: '/var/lib/centreon-broker//central-rrd-master.queue.central-rrd-master-input-1' removed
[core] [info] feeder: thread of client 'central-rrd-master-input-1' will exit
[core] [info] Destroying muxer central-rrd-master-input-1: number of events in the queue: 0
[tcp] [debug] stop acceptor
[tcp] [error] Error while reading on socket: Operation aborted.
[tcp] [info] TCP acceptor interrupted: Operation aborted.
[core] [info] multiplexing: stopping engine
[core] [info] multiplexing: sending events to muxers for the last time 0 events to send
[core] [info] Destroying muxer central-rrd-master-output: number of events in the queue: 0
[core] [info] modules: closing '/usr/share/centreon/lib/centreon-broker/70-rrd.so'
[core] [info] protocols: unregistering protocol 'RRD'
[core] [info] modules: closing '/usr/share/centreon/lib/centreon-broker/60-tls.so'
[core] [info] protocols: unregistering protocol 'TLS'
[core] [info] modules: closing '/usr/share/centreon/lib/centreon-broker/50-tcp.so'
[core] [info] protocols: unregistering protocol 'TCP'
[core] [info] modules: closing '/usr/share/centreon/lib/centreon-broker/15-stats.so'
[core] [info] modules: closing '/usr/share/centreon/lib/centreon-broker/10-neb.so'
[core] [info] protocols: unregistering protocol 'BBDO'
[core] [info] protocols: unregistering protocol 'compression'
[core] [info] protocols: unregistering protocol 'file'
[core] [info] protocols: destruction (0 protocols still registered)
[core] [info] pool: the latency check encountered an error: Operation aborted.
[core] [info] main: process /usr/sbin/cbd pid:405433 end exit_code:0
[core] [info] log finished

“””

 

I tried reading rrd files and they seem to update according to the values I get in CentreonWeb.

Userlevel 6
Badge +18

How do you check rrd file? If you move to “Monitoring > Performances > Graphs” can you see them?

Same problem on version 23.04.5, Graphs were working yesterday and now they aren’t. “There’s no data”

Userlevel 2
Badge +3

I tried researching a bit about rrdtools, I learned that you can see the last value put into the file with 

rrdtool last 667.rrd

Anyway, no, I can’t see them anywhere, even when hovering over the graph Icon in ‘Regroupement par hôte’ unfortunately…

There it says “No data available for this period of time”

Userlevel 2
Badge +3

 

Userlevel 6
Badge +18

Hi, are you on Debian?

Where are the owner and groups of /var/log/centreon/rrdtool.log file?

ls -lah /var/log/centreon/rrdtool.log

 

Userlevel 2
Badge +3

Hello @Laurent ! Yes I run Centreon on Debian 11.

 

-rw-r--r-- 1 centreon centreon 0 15 juin  10:24 /var/log/centreon/rrdtool.log

 

It’s the same as other log files... Should the owner be centreon-engine or centreon-broker ?

I don’t want to hijack the thread but I have the same permissions

-rw-r--r-- 1 centreon centreon 0 jul  7 22:26 /var/log/centreon/rrdtool.log

Also at work I have the same issue with centreon, both using Debian 11.

Userlevel 2
Badge +3

I don’t want to hijack the thread but I have the same permissions

-rw-r--r-- 1 centreon centreon 0 jul  7 22:26 /var/log/centreon/rrdtool.log

Also at work I have the same issue with centreon, both using Debian 11.

No worries, please participate as we seem to have the same issue and configuration.

 

Then could it be a RRD package issue ?

Userlevel 6
Badge +18

Ok can you change rights using:

chown www-data:www-data /var/log/centreon/centAcl.log
chown www-data:www-data /var/log/centreon/license-manager.log
chown www-data:www-data /var/log/centreon/login.log
chown www-data:www-data /var/log/centreon/rrdtool.log
chown www-data:www-data /var/log/centreon/sql-error.log

 

Userlevel 2
Badge +3

That solved it after restarting centreon !

Woah how come the logs permission influence the behavior of the graphs ? Alone, I could never have guessed

Thank you so much @Laurent ! @Net ping

Yes the solution also worked for me in both my lab and at work.

 

Thank you @Laurent and @Yllake 

Userlevel 5
Badge +11

 

Hi @Yllake@Net! Huge shout-out to all of you for your contributions, and a special thanks to @Laurent for going above and beyond. We'd love to hear your thoughts on "The Watch" right here. Your feedback is key to leveling up your experience on the platform. Thank you in advance, 

Same issue and fix for Centreon 23.04.6

Reply