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
Centreon graphics are not updated
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
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!
- 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)
- 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
- Move the retention files
service cbd stop
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'
Indepth of the Centreon Broker: