Question

Mise à jour configuration pollers 1.8.1 depuis un Central 21.10

  • 1 April 2022
  • 5 replies
  • 82 views

Badge +1

Bonjour, je rencontre un problème avec une migration ( 1.8.1 --> 21.10 ).
J'ai installé un nouveau serveur Central avec l'ISO 21.10 et intégré la base de données de l'ancien serveur.
J'ai bien mes pollers distants qui communiquent avec le central mais je n'arrive plus à mettre à jour les configurations des pollers.
l'utilisateur "centreon" du serveur central arrive bien a se connecter sur le distant sans MDP ( clé SSH OK ) mais la configuration n'est pas envoyé.
Pour des raisons de volume et d'organisation, je ne peux pas réaliser la migration de tous mes pollers distants en 21.10 immédiatement.
Avez-vous déjà réussi à faire communiquer un serveur central 21.10 avec un poller distant en 1.8.1?
Merci d'avance pour vos retours,
Cordialement


5 replies

Userlevel 4
Badge +12

Hello @SebastienD,

centengine 1.8.1 and broker 21.10 are not compatible.

There are kind of break changes between this 2 version (almost 5 years).

Once of the biggest break changes is the format of the cbmod’s configuration loaded by centengine, which was in XML and now in JSON format.

For the copy of the file, now that is handle by gorgone daemon, try to perform the connection with the user centreon-gorgone on the centreon user of the poller:

su - centreon-gorgone
ssh centreon@ip_poller

Maybe you’ll need to use the old keys of centreon user or perform a new exchange.

 

Then You can try the following “trick” to load the old configuration by editing the engine configuration of your poller and change this:

/usr/lib64/nagios/cbmod.so /etc/centreon-broker/poller-aws-training1-module.json
by
/usr/lib64/nagios/cbmod.so /etc/centreon-broker/poller-aws-training1-module.xml

 

Badge +1

Thank you for your feedback, 

I have the user "centreon-gorgone" of the central server which can connect to the user "centreon" of the remote poller without asking for a password.
The problem is that the configuration file is never loaded on the remote poller.
I can't find a log file on the central server that indicates a connection and transfer error

 

Badge +1

By checking in the Centreon documentation, it is however well specified that a Central 21.10 server can export the configuration of a poller in 1.8.1 but nothing is specified except an adaptation on the path of the plugins.

 

Userlevel 4
Badge +12

I wasn’t aware about this documentation :’)
When you expert the configuration, did you see something is the /var/log/centreon-gorgone/gorgoned.log ?

Could you enable debug of gorgoned (in the menu Administration > Parameters > Debug), restart gorgoned, export the configuration and take a look ?

Userlevel 4
Badge +12

And also could you check the log on the pollers:

  • /var/log/messages
  • /var/log/centreon-engine/centengine.log
  • /var/log/centreon-broker/<poller-module>.log

When you try to restart centengine ?

Reply