Skip to main content

Hello,

I have a trouble with my centreon installation.

It works on Debian 11 and I had upgrading my platform from 21.10.x to 22.04.x from source.

Now I have a problem when I push the configuration to pollers.

I had this error :

If I delete all the icons from host templates, I have the same errors with hosts groups attachment. I can not remove hosts groups because there are used for ACL.

I try to upgrade the plateform a new time, that don’t solve the problem.

I check in this files logs on frontal web servers and pollers server :

  • /var/log/centreon/centreon-error.log
  • /var/log/centreon/sql-error.log
  • /var/log/centreon-engine/centengine.log
  • /var/log/centreon-engine/centengine.debug
  • /var/log/centreon-gorgone/gorgoned.log

I don’t find any log and if I make a tail command on this files logs and I push the configuration, no new lines appaired.

Could you help me to solve this problem ?

Best regards, Loic.

Hi !

 

Did you upgrade centreon-engine to version 22.04 too ?

Because icon_id parameter is only avaialble since this version.

You can check the version with : /usr/sbin/centengine -V (path may change depending on your install) 


Hi,

Because I make the upgrade from source, I use Github sources and centengine are no update in the github repository since 21.04 version.

On my centreon servers, centengine version is 21.04.5.

You think, I must to make the upgrade with the tar gz can I download on download.centreon.com ?

Regards,


This is probably because centreon-engine is hosted here now : https://github.com/centreon/centreon-collect (with centreon-broker)

Since 22.04, you can also use debian pkg 😊 https://docs.centreon.com/docs/installation/installation-of-a-central-server/using-packages/


Humm, nice ! We now have centreon repo in Debian 😀. Thanks for this information !

For Centreon collect, in the documentation, I’ve not see that, so I’ve not install this 🤣.

Thanks for your replies, I will perform the upgrade and test it.

Regards,


Hi, I have the same issue… Did you solved it?

I’m using the 22.10 Centreon Engine version


Hi @aalz0 what is your error exactly?


Hi @aalz0 what is your error exactly?

I have opened a question with more details. (if you want answer me there). 

My issue is that after importing files from the CLAPI I get this error: '/var/cache/centreon/config/engine/1/hostTemplates.cfg' on line 138: Invalid line '2d_coords 43.0653125,-2.4905386'

I dont know which is the problem, because those 2d_coords and 3d_coords parameters exists when creating a host template.


We don’t use anymore 2d or 3d Coords , you need to use “Geographic coordinates”.

Please edit your template and change configuration


Okay, thanks, I’ll try.

Which is the exact name of the field?

I can try to edit a hostTemplate and then see which is thw correspondent field in the .cfg file, but now I’cant do that  because I can export the configuration due to this issue.

The files in /etc/centreon-engine havent been modified after importing the data via CLAPI. I alsso tried to delete the /var/cache/centreon/1…. and the “problematic” hostTemplate.cfg continues, how can I delete? I have lots of templates to delete them manually.

 

Thanks


You can check in /var/cache/centreon/config/engine/<poller_id>/ directory


I have revert my snapshot and import again the hosts and hostTemplates without those fields… But its a shame….


can you put here the content of the host template definition with errors? (without credentials info of course)


Reply