I dont know why, I have a centengine error, I get the following output when I put systemctl status centengine:
centenginee38831]: date] configuration] info] Processing object config file '/etc/centreon-engine/severities.cfg' centenginee38831]: 1674206969] 38831] Reading resource file '/etc/centreon-engine/resource.cfg' centenginee38831]: date configuration] info] Reading resource file '/etc/centreon-engine/resource.cfg' centenginen38831]: :date] ]core] ]info] Starting the TCP thread pool of 4 threads centenginen38831]: :date] ]core] ]info] protocols: registering protocol ('file' (layers 1-3) centenginen38831]: :date] ]core] ]info] protocols: registering protocol ('compression' (layers 6-6) centenginei38831]: ]date] ecore] einfo] protocols: registering protocol ('BBDO' (layers 7-7) centenginei38831]: /usr/sbin/centengine: symbol lookup error: /usr/lib64/nagios/cbmod.so: undefined symbol: _ZN3com8centreon6broker3neb9log_entryC1Ev systemde1]: centengine.service: Main process exited, code=exited, status=127/n/a systemde1]: centengine.service: Failed with result 'exit-code'.
Why do I get this error? How can I recover that cbmod.so file?
Page 1 / 2
I have removed the /usr/lib64/nagios.cbmod.so from /etc/centreon-engine/centengine.cfg
and leave only /etc/centreon-broker/central-module.json
Now the centengine process starts, with no errors.
But I still have the poller in “Not running state”…
On /var/log/centreon-broker/central-broker-master.log I have the following:
Anyone please help?
@Laurent do you know something about this?
I get that undefined symbol o cbmod.so…
Removing that from engine-configuration could be a big problem? Is that file broken or damaged? Any ideas of how could I solve that?
Hi @aalz0 can you try to reinstall centreon-broker\* packages?
Hi @Laurent,
How? Which command? Do I need to delete firstly the packages? Did you mean centreon-broker or centreon-engine?
Maybe I need to rienstall nagios to get another cbmod.so file? I’m completely lost… I think I’m cheating centreon avoiding it from checking the cbmod.so file (which is the one giving erros...)
Error is about cbmod.so and this binary is provided by centreon-broker packages.
So please reinstall all centreon-broker packages using:
yum reinstall centreon-broker\*
Then restart centreon-engine process:
systemctl restart centengine
Thanks @Laurent, doing that I dont have any more centengine erros on my terminal, the process starts correctly.
But on the Web UI the polle is “not running” and even the database has an issue. But on temrinal seem to be everything ok.
Do I have to do the same to reintall other centreon packages?
Can you try to generate and export configuration using web interface?
I’ve alredy try.
But I continue on this state:
In central.broker-master.log I get the following errors:
[2023-02-01T15:40:15.221+01:00] [perfdata] [error] multiplexing: could not open cache file: cannot open '/var/lib/centreon-broker//central-broker-master.unprocessed' to read/write: Permission denied [2023-02-01T15:40:15.284+01:00] [tcp] [error] Error while reading on socket: End of file [2023-02-01T15:40:19.439+01:00] [core] [info] pool: the latency check encountered an error: Operation aborted. [2023-02-02T08:12:11.239+01:00] [sql] [error] unified_sql: the 'metrics' table contains rows with metric_id <= 0 ; you should remove them. [2023-02-02T08:39:53.549+01:00] [tcp] [error] Error while reading on socket: Operation aborted. [2023-02-02T08:39:55.069+01:00] [core] [info] pool: the latency check encountered an error: Operation aborted.
That unified_sql error took my attention. So, I tried to see if there are metric_id values less than 0 in the metrics table of centreon_storage database, but there arent, it’s empty. I use this query:
use centreon_storage; select * from metrics where metric_id <= 0;
I continue with the error
/usr/sbin/centengine: symbol lookup error: /usr/lib64/nagios/cbmod.so: undefined symbol: _ZN3com8centreon6broker3neb9log_entryC1Ev
And centengine is stopped. I’m completely desperate, any more ideas?
@Laurent proposal seemed to work, but I’m at the same poin
@aalz0 did you add a stream connector output on the broker linked to this poller?
No, I only have this machine, which is my central server, and then 2 mariadb in a galera cluster working fine...
Ok so it is a standalone server with basic configuration.
Can you change rights on /var/lib/centreon-broker/ to fix “Permission denied” error:
Im completely blocked at this point, I think it is a system problem.
I have tried to reinstall from zero, but I get the 503 service unavailable error. (Centreon not working after installation | Community) I have seen that many other forum members have also this problem, maybe Centreon doesnt work well at all in Debian 11 OS. Is there going to be any update to solve this?
@aalz0 we are moving APY repo to a new one, may be there is issu with packages in this moment.
Also would be great an OVA on a mantained OS like Debian 11 and no on a deprecated OS (CentOS). Will be soon available that repo update?
Hi @Laurent,
I have done a rollback to the snapshot where I had my database locally, and I dont have this issues…
So , It seems that the cbmod.so errors are gneerated when I export my bbdd to a remote server.
Could this be the root of the problem?
Is there any doc or guideof how to correctly export the database from local to a remote database?
The only thing I did was import and export with mysql dump the centreon and centreon_storage bbdd and change the word loclhost on this files:
Edit the /etc/centreon/centreon.conf.php file,
Edit the /etc/centreon/conf.pm file,
Edit the Centreon Broker central configuration using Centreon web interface and change the password for the Perfdata generator and Broker SQL database output, (Conf-> Pollers)
Edit the /etc/centreon/config.d/10-database.yaml file.
/etc/centreon-broker/central-broker.json dbhost, dbuser y db_password change
Hi @aalz0 your procedure is correct but I d’ont know why you have errors with rights access to directory.