Skip to main content
Question

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

  • Feb 3, 2023 10:44 AM UTC
  • 6 replies
  • 498 views

Forum|alt.badge.img+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

Forum|alt.badge.img+12
  • Builder **
  • Jan 30, 2024 10:31 AM UTC

Hi,

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

Regards


Forum|alt.badge.img+1
  • Author
  • Steward *
  • Jan 30, 2024 11:12 AM UTC

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>


Forum|alt.badge.img+12
  • Builder **
  • Jan 30, 2024 12:17 PM UTC

hi @Achraf04 

yep… connection closed… we will open them quickly.

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


Forum|alt.badge.img+1
  • Author
  • Steward *
  • Jan 30, 2024 2:25 PM UTC

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.


Forum|alt.badge.img+12
  • Builder **
  • Feb 27, 2024 3:33 PM UTC

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


Forum|alt.badge.img+12
  • Builder **
  • Feb 29, 2024 9:10 AM UTC