Skip to main content

I migrated my Centos7 Centreon 22.04 platform to Debian 11 Centreon 22.04.

For the Central, I used this procedure : https://docs.centreon.com/docs/migrate/migrate-from-20-x/

User IDs for centreon, centreon-engine and centreon-broker accounts are not the same on these 2 platforms.

On Centos 7 :

uid=994(centreon-broker) gid=992(centreon-broker) groups=992(centreon-broker),995(centreon),994(nagios),993(centreon-engine),989(centreon-gorgone)
uid=995(centreon-engine) gid=993(centreon-engine) groups=993(centreon-engine),995(centreon),994(nagios),992(centreon-broker),989(centreon-gorgone)
uid=997(centreon) gid=995(centreon) groups=995(centreon),993(centreon-engine),992(centreon-broker),48(apache),989(centreon-gorgone)

On debian 11  :

uid=112(centreon-broker) gid=120(centreon-broker) groups=120(centreon-broker),33(www-data),118(centreon),119(centreon-engine),121(centreon-gorgone)
uid=111(centreon-engine) gid=119(centreon-engine) groups=119(centreon-engine),118(centreon),120(centreon-broker),121(centreon-gorgone)
uid=110(centreon) gid=118(centreon) groups=118(centreon),33(www-data),119(centreon-engine),120(centreon-broker),121(centreon-gorgone)

As a result, I had to make the following adjustments:

chown www-data: /etc/centreon-broker/*
chown www-data: /etc/centreon-engine/*

chown centreon: /etc/centreon/*
chown centreon: /var/lib/centreon/*
chown centreon-broker: /var/lib/centreon/metrics/*
chown centreon-broker: /var/lib/centreon/status/*
chown centreon-gorgone: /var/lib/centreon/nagios-perf/perfmon-* -R
chown centreon-engine: /var/lib/centreon/centplugins/*

I also had to regenerate the gorgone configuration on all my pollers given the change of Central ID.

Is it possible to update the procedure in order to clearly identify the impacts of the OS change?

Hello,
Thanks for your feedback. The documentation will be updated soon!


Hello,

The documentation has been updated: https://docs.centreon.com/docs/migrate/migrate-from-el-to-debian/

Thank you for your input!


Bonjour @Pascal ,
Désolé de re sortir ce vieux post mais te souviens tu si tu avais besoin de re-enregistré tes pollers ? (cf via cette méthode https://docs.centreon.com/fr/docs/installation/installation-of-a-poller/using-packages/#%C3%A9tape-3--enregistrer-le-serveur)

Si je fais ça, j’ai l’erreur :
{"message":"A platform using the name : '****************' or address : '****************' already exists"}


Si je ne l’enregistre pas et que j’éssaie juste d’export sa configuration j’ai l’erreur :
 ERROR - cannot get fingerprint for target 'tcp://****************:5556'

 

Ce qui est normale car mon poller n’écoute pas sur 5556 car il n’a pas encore reçu 40-gorgoned.yaml du central.

Du coup je comprend pas comment re-ajouter mon poller sans juste le supprimer et le recréé (ce qui ne m’arrange pas car je perdrais tout les configurations hôtes et services liés)

Merci d’avance !


Reply