-
Notifications
You must be signed in to change notification settings - Fork 240
Add Remote Server using FQDN instead of IP ? #7615
Comments
Of course, after having allowed both my instances to be reached using their IP ( I then don't understand the goal of the "Do not check SSL certificate validation" user option, as we can't validate a SSL certificate using an IP, but using a FQDN only (valid SSL certificate only contain FQDN). As per my understanding this option then can't be unchecked : we will be presented a self-signed certificate, or a CA-signed certificate but which will not validate the IP address... Thank you 👍 |
Hi @cpbn I made a PR, can you test ? |
Hi @lpinsivy, sure, many thanks, let me test this and report 👍 |
So @lpinsivy, #7637 really helps, thank you 👍 One thing though. The workaround I found for now is to choose the Manual input solution, using FQDN instead of IPs in both places of the wizard form. Thank you 👍 |
We prefer to store received IP from Remote Server instead of FQDN. So the PR works? Regards, |
Perfect then 👍 |
One last question Laurent (which will perhaps lead to a documentation update).
How to simply enable Remote Server mode without specifying Central info ? Thank you again 👍 |
@cpbn unfortunately you can't. The workaround is to set an invalide IP to get the "Ping Master" failed and enable the Remote Server ;) |
Conflicts: www/install/sql/centreon/Update-DB-18.10.5_to_18.10.6.sql
Just to be clear, the ip column of the remote_servers table is not meant to store the FQDN of the Central, but the IP address from which the enableRemote process did come from, so the Remote Server IP. So when you call the enableRemote action, you have to specify the IP address and/or FQDN of your Central to report back to it, and add it locally as a "Authorize" host for future createRemoteTask action coming from the Central. |
Sure :)
Or its FQDN then, right ? (this was the purpose of this ticket and its related PR @lpinsivy wrote). |
Hi,
I'm trying to configure a remote server.
Both my central and my (ready to be configured) remote server are reachable through HTTPS only, with a valid SSL certificate.
So both can be reached through their
https://FQDN/
URL.They can't be reached using their IP (
https://IP/
), which will return an HTTP 403 Forbidden error.I'm a little bit confused by the Centreon documentation where the process to add a remote server only talks about the IP address of the central and remote servers.
I tried to add the remote server using the FQDN of the central and remote servers where the process asks for an IP address, this to be sure both use the FQDN and not the IP of the other server, so that they will properly connect through HTTPS, reach and validate the proper SSL certificate etc...
There are 3 places where an IP address is asked :
https://documentation.centreon.com/docs/centreon/en/latest/administration_guide/poller/install_remote_server_packages.html
Unfortunately this does not seem to work.
I tried to investigate and found that the FQDN does not fit into the
ip
field of theremote_servers
MySQL table, which is too small. Perhaps this is the issue.Did I miss something ?
Thank you for your help 👍
Edit : issue still present in 19.04.2.
The text was updated successfully, but these errors were encountered: