Migrate your Centreon Central server
If the module centreon-poller-display-central-1.6.x is installed:
Go to the Administration > Extensions > Modules menu and uninstall the centreon-poller-display-central.
Remove the associated package:
yum remove centreon-poller-display-central
If you use the Centreon EMS modules, you must update these repositories. Be sure to contact Centreon support and request new licenses.
Migrate a Poller from Poller Display module to Remote Server
Go to the Administration > Extensions > Modules menu and uninstall the Centreon Poller Display module.
If you installed the module using an RPM package, remove it with the following command:
yum remove centreon-poller-display
If you use Centreon EMS modules, you must update the repositories. Be sure to contact your Centreon support and request new licenses.
Go to Administration > Extensions > Modules menu and install the centreon-license-manager module.
Register the server
To transform the server into a Remote Server and register it to the Centreon Central server, execute the following command:
/opt/rh/rh-php72/root/bin/php /usr/share/centreon/bin/registerServerTopology.php -u <API_ACCOUNT> \ -t Remote -h <IP_TARGET_NODE> -n <REMOTE_SERVER_NAME>
/opt/rh/rh-php72/root/bin/php /usr/share/centreon/bin/registerServerTopology.php -u admin \ -t Remote -h 192.168.0.1 -n remote-1
Replace <IP_TARGET_NODE> by the IP of the Centreon server seen by the Remote Server.
The <API_ACCOUNT> must have access to configuration API. you can use default admin account.
If you need to change the HTTP method or the port, you can use the following format for the -h option: HTTPS://<IP_TARGET_NODE>:PORT
Then follow instructions by
- Entering your password:
192.168.0.1: please enter your password
- Define if you use a proxy to connect to Centreon central server:
Are you using a proxy ? (y/n)n
If you use a proxy, please define credentials:
Are you using a proxy ? (y/n)y proxy host: myproxy.example.com proxy port: 3128 proxy username (press enter if no username/password are required): myuser please enter the proxy password:
- Select the IP adress:
Found IP on CURRENT NODE: : 192.168.0.2 Which IP do you want to use as CURRENT NODE IP ?1
- Then validate the information:
Summary of the informations that will be send: Api Connection: username: admin password: ****** target server: 192.168.0.1 Pending Registration Server: name: remote-1 type: remote address: 192.168.0.2 Do you want to register this server with those informations ? (y/n)y
You will receive the validation of the Centreon central server:
2020-10-16T17:19:37+02:00 [INFO]: The CURRENT NODE 'remote': 'firstname.lastname@example.org' linked to TARGET NODE: '192.168.0.1' has been added
Main errors messages
2020-10-20T10:23:15+02:00 [ERROR]: Invalid credentials
Your credentials are incorrect for the <API_ACCOUNT>.
2020-10-20T10:24:59+02:00 [ERROR]: Access Denied.
The <API_ACCOUNT> doesn't have access to configuration API.
Failed connect to 184.108.40.206:444; Connection refused
Unable to access to the API. Please check <IP_TARGET_NODE>, scheme and port.
2020-10-20T10:39:30+02:00 [ERROR]: Can’t connect to the API using: https://220.127.116.11:443/centreon/api/latest/login
The access url is not complete or invalide. Use the --root option to define the API URL Path. For example: --root monitoring.
2020-10-20T10:42:23+02:00 [ERROR]: No route found for “POST /centreon/api/latest/platform/topology”
Your Centreon target version is invalid. It should be greater or equal to 20.10.
Add rights to centreon database user to use LOAD DATA INFILE command:
GRANT FILE on *.* to 'centreon'@'localhost';
On the Centreon Central server, edit all pollers and attach them to the Remote Server using the selection list.
Remember to generate the configuration for your Remote Server.
A Centreon Remote Server is self-administered.
Thus, the configuration of the LDAP directory, users and ACLs are specific to this server and must be configured through the Administration menu.