Question

Can't transform the server into a Remote Server and register it to the Central server

  • 3 February 2023
  • 6 replies
  • 190 views

Badge +1

Hello Community, I hope you all are doing well.

I followed the instructions to install a remote server from the link : installation-of-a-remote-server.

In the 5 step when executing the command :

/usr/share/centreon/bin/registerServerTopology.sh -u <API_ACCOUNT> \
-t remote -h <IP_TARGET_NODE> -n <REMOTE_NAME>

I get the following error that i did not find in the Main error messages from the installation link :

- ERROR - 192.168.56.13: {"code":500,"message":"Error from Central's register API : The platform: 'remote1'@'192.168.56.13' cannot be added to the Central linked to this Remote  \/  Central's response => Code : No parent platform was found for : 'remote1'@'192.168.56.13'"}
  • Both my central server and the remote are on the same network.
  • I’m using Centreon v22.04 on both servers.
  • I’m working on CentOS 7.

I tried to find a solution in the forum but nothing worked for me.

 

Do you know what I could do to solve this issue ?

Thank you.


6 replies

Userlevel 1
Badge +8

Hi,

how did you manage with this ? We have the same error ?

Regards

Badge +1

Hello SavCent,

Have you verified whether you can establish a connection from the remote server to the central server on either port 80 or 443 over the web?

You can use : telnet <central_ip> <port>

Userlevel 1
Badge +8

hi @Achraf04 

yep… connection closed… we will open them quickly.

Do you know an alternate for convert the distant central to remote ?

Badge +1

As far as i know, it is necessary to establish the connection between the remote server and the central server before executing the "registerServerTopology.sh" script.

And after the execution, you can close the connection for security purposes.

Establishing the connection is essential because the register script includes a function that utilizes a POST request to register to the platform topology using the Centreon API. This function requires a connection from the Remote server to the Centreon Central server using the provided username and password. Therefore, it is crucial to ensure that the connection is successfully established.

Userlevel 1
Badge +8

Hi @Achraf04 ,

so now it’s finally open. But when we execute :

/usr/share/centreon/bin/registerServerTopology.sh -u admin -t remote -h https://1.2.3.4:443 -n remote-server

we get :

2024-02-27 16:32:46+01:00 - ERROR - 5.6.7.8: {"code":500,"message":"API calling the Central returned a Client exception : HTTP\/1.1 403 Forbidden returned for \"https:\/\/1.2.3.4\/centreon\/api\/v23.04\/login\"."}

Where 1.2.3.4 is my central and 5.6.7.8 is my remote

Userlevel 1
Badge +8

i made a post registerServerTopology.sh - API calling the Central returned a Client exception | Community (centreon.com)

Reply