Hi,
We can't register a remote server on the central server.
info :
remote :
- ip 5.6.7.8
- proto http
- port 80
central:
- ip 1.2.3.4
- proto https
- port 443
here are the details of how to run registerServerTopology.sh :
[sysadmin@CENTREON-REMOTE ~]$ sudo /usr/share/centreon/bin/registerServerTopology.sh -u admin -t remote -h https://1.2.3.4 -n remote-weldom
[sudo] password for sysadmin: [MOT DE PASSE DU COMPTE SYSADMIN DU REMOTE]
Please enter the password of https://1.2.3.4: [MOT DE PASSE DU COMPTE ADMIN WEB API DU CENTRAL]
Summary of the information that will be sent:
Api Connection:
username: admin
password: ******
target server: 1.2.3.4
Pending Registration Server:
name: remote-weldom
hostname: CENTREON-REMOTE.weldom-savoye.lan
type: remote
address: 5.6.7.8
Do you want to register this server with the previous information? (y/n): y
More information is required to convert your platform into Remote :
5.6.7.8: Please enter your username: admin
Please enter the password of 10.19.141.162:[MOT DE PASSE DU COMPTE ADMIN WEB DU REMOTE]
5.6.7.8: Protocol [http]:
5.6.7.8: Port [80]:
5.6.7.8: centreon root folder [centreon]:
Are you using a proxy ? (y/n): n
2024-02-28 11:32:38+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\"."}