Troubleshooting Centreon no Graphics


(Using centreon brokers 2.11.8 BBDO not nagios NDO)
Centos 6.8 x64 centreon-broker-2.11.8-2.el6.x86_64 centreon-broker-cbd-2.11.8-2.el6.x86_64 centreon-broker-cbmod-2.11.8-2.el6.x86_64 centreon-broker-core-2.11.8-2.el6.x86_64 centreon-broker-storage-2.11.8-2.el6.x86_64
 

PROBLEM

Centreon graphics are not updated

CAUSE

Usualy it is related to centreon-broker not writing
in my case I saw no rrd files being updated at /var/lib/centreon/metric or /var/lib/centreon/status!
RRD Broker Log is here : /var/log/centreon-broker/central-rrd-master.log
even after setting to debug and very detailed i saw no errors, but still no RRD being written.
Check the stat files
tail -f /var/lib/centreon-broker/central-rrd-master.stats
VERY IMPORTANT: be sure to have all modules state=lodade

ROOT CAUSE

The problem was the damn retention file! And permissions.
Luckly I saw this post https://github.com/centreon/centreon-broker/issues/56
Basicly saying if cbd starts the retention file causes problems!

SOLUTION

  1. Broker configurations back to default!
    I could not find the default anywhere even in the documentations etc…
    They have info about best practices showing how to configure failover but no default configuration.
    I had another recently installed centreon where I was able to get the default files.
    Here are all the screenshoots for it.  And here are all the text files /etc/centreon-broker/ of it (xml)
  2. Permission fix
    If the cbd is started and it finds a rention file, it just writes stuff there
    and no rrd files get updated!

    chown centreon-broker.centreon /var/lib/centreon/metrics
    chown centreon-broker.centreon -R /var/lib/centreon/metrics
    chown centreon-broker.centreon /var/lib/centreon/status
    chown centreon-broker.centreon -R /var/lib/centreon/status
    chown centreon-broker.centreon /usr/share/centreon/lib/centreon-broker
    chown centreon-broker.centreon -R /usr/share/centreon/lib/centreon-broker
  3. Move the retention files

    service cbd stop
    cd /var/lib/centreon-broker/
    mkdir old
    mv *.retention old/
    service cbd start
    # monitor if the rrd files are now being updated if so then your graphics will be updating.
    watch -n 5 'ls -laht /var/lib/centreon/metrics/ |head -n 30'

References

Official Documentation:
https://documentation.centreon.com/docs/centreon-broker/en/latest/index.html
Indepth of the Centreon Broker:
http://blog.centreon.com/gerer-les-pertes-de-connexions-de-centreon-broker-2/#
https://documentation.centreon.com/docs/centreon/en/2.8.x/configuration_guide/poller/index.html
https://documentation.centreon.com/docs/centreon/en/2.8.x/administration_guide/02l.html
https://github.com/centreon/centreon-broker/issues/68]]>

Tags: , , , ,

1 thought on “Centreon no Graphics

  1. Hi.
    First thank you for this tutorial.
    I have to say that I try this solution but unfortunately didn’t work intermediately.
    But after a system reboot the graphs was generating again 🙂 🙂 :-).
    Thank you so much.
    Grate job.

Leave a Reply

Your email address will not be published. Required fields are marked *