Skip to main content
Question

Can't connect poller to central server

  • Feb 10, 2023 1:07 PM UTC
  • 18 replies
  • 2527 views

Forum|alt.badge.img+8

I am trying to connect a poller to a central server and I am having problems.

First of all I have to set the -insecure flag because otherwise it tells me that it cannot connect to the central server. I guess it is because it is a self-signed certificate, although on the web I get that "the certificate is valid and signed by an authorizing entity". 

I get the error:

ERROR - https://ip_central:443: {"message": "No parent platform was found for : 'POLL01'@'local_ip'"}

I have checked with telnet to the central server and port 443 that it can connect. I also have gorgoned and the other services active in the poller.

Any idea what it could be?

Thanks!!

18 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Feb 10, 2023 8:10 PM UTC

👋

 

@aalz0 

 

 

🤔


Forum|alt.badge.img+8
  • Author
  • Builder *
  • Feb 13, 2023 7:28 AM UTC

Hi, 

As I put in my first post, I have put what is commented in that other post and it does not work for me. Even if I put --insecure, I get the error message.


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Feb 13, 2023 7:53 PM UTC

I see, thank you. In your poller, are you using a command similar to this?

 

/usr/share/centreon/bin/registerServerTopology.sh -u admin -t poller -h central.ip -n poller-1 --insecure

you can also try with:

/usr/share/centreon/bin/registerServerTopology.sh -u admin -t poller -h central.ip -n poller-1 --insecure  --node-address poller.ip

 

Also, what IP are you using under the central IP? 

 

Finally, check in the DB if the IP matches the one you are trying to reach:

mysql [centreon] > select * from platform_topology;


Forum|alt.badge.img+8
  • Author
  • Builder *
  • Feb 14, 2023 7:22 AM UTC

Hi @ponchoh thank you so much for your reply, I really appreciate!

I have try what you told me with NO result.

First I have try that command but I get the same error:

 /usr/share/centreon/bin/registerServerTopology.sh -u admin -t poller -h https://central-ip:443 -n poller-1 --insecure --node-address poller-ip

Then, I have also the local host IP on my Central server.

To finish, in the bbdd server that query returns me nothing:

MariaDB [centreon]> select * from platform_topology;
Empty set (0,000 sec)

 

I’m 90% sure that the error is due to the SSL certificate or something related with this… But I dont know what can I change…

 


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Feb 14, 2023 8:28 PM UTC

@aalz0 with the query you should be able to see at least your central so you might have something else.

 

 

Do you see your central?

 

 


Forum|alt.badge.img+8
  • Author
  • Builder *
  • Feb 15, 2023 7:15 AM UTC

I have my central on another server, it s a remote database. Could be that the reason why the central server is not visible?

 

Yes, in the pollers configuration I see my central.


Forum|alt.badge.img+8
  • Author
  • Builder *
  • Feb 15, 2023 1:27 PM UTC

Any idea @Laurent ?


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Feb 15, 2023 10:33 PM UTC

No, I don’t believe that is the problem. I want to confirm the IP that shows under (platform_topology) and the one you are using.


Forum|alt.badge.img+8
  • Author
  • Builder *
  • Feb 16, 2023 7:11 AM UTC

Is there any way to update de table? Because I dont get anything with that query….


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Feb 16, 2023 9:19 AM UTC

Hi @aalz0 can you try to edit your central configuration and save the form and check if entry appears in platform_topology table.

If not, add manually the entry for the central server.


Forum|alt.badge.img+8
  • Author
  • Builder *
  • Feb 16, 2023 10:41 AM UTC

I have manually make the entry but the “"message":"No parent platform was found for : poller-1@poller_ip”) persists.


Forum|alt.badge.img+8
  • Author
  • Builder *
  • Feb 23, 2023 7:41 AM UTC

Well, bye community, due to the amount of errors, and being impossible for me to connect the pollers, I’m moving to another monitoring tool, Zabbix concretely.

 

Thank you all for the replies :) See you


Forum|alt.badge.img+14
  • Builder ***
  • Feb 23, 2023 10:12 PM UTC

Hello @aalz0

Maybe you could have the same issue then this user : https://github.com/centreon/centreon-archived/issues/11852

Visibly it was a loopback address who is present on Central configuration who block the registering

According the documentation this script is used to transform a server from a Central, a Poller, a Remote, a MAP server, a MBI server to a Central, Poller, Remote, MAP, MBI and also register it https://docs.centreon.com/docs/installation/installation-of-a-poller/using-packages/#step-3-register-the-server

A good alternative, is to use the wizard if is not a transformation of a server, just an add of a Poller, a Remote https://docs.centreon.com/docs/monitoring/monitoring-servers/add-a-poller-to-configuration/

This script is a wrapper of the Rest API V2  https://docs.centreon.com/docs/api/rest-api-v2/

You could see on the API documentation the verb and endpoint : https://docs-api.centreon.com/api/centreon-web/

Topology

  • Register to platform topology : verb POST 
    https://docs-api.centreon.com/api/centreon-web/#tag/Topology/paths/~1platform~1topology/post
  • Get a platform topology : verb GET
    https://docs-api.centreon.com/api/centreon-web/#tag/Topology/paths/~1platform~1topology/get

(I can't post the URL's, i have the error message Oups Something it Wrong)

All the best with Zabbix

Bye


Forum|alt.badge.img+1
  • Steward *
  • Oct 11, 2023 6:55 AM UTC

Good morning, 

I have the same error. When I do it with a poller that is on the same network I have no problems.

If I do it with a poller from another network I get : ' "message": "No parent platform was found for...'. 

Could it be a licensing issue?
Certificates?

Has anyone had this problem and solved it?

Thanks.


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Oct 11, 2023 7:11 AM UTC

Hi @txontxet can you check in database if the IP of your central server is correct in centreon.platform_topology table? If not can you update value with correct public IP and retry with the script?


Forum|alt.badge.img+1
  • Steward *
  • Oct 11, 2023 8:10 AM UTC

Hello, in the table I see the IP which I attack to access via web.

 

Parent_id NULL is correct?

From the web configuration Configuration > Pollers I see the central server IP 127.0.0.1 but I have also tried to set it to 10.17.0.225 and it still fails.

 

Regards.


Forum|alt.badge.img+1
  • Steward *
  • Oct 11, 2023 8:18 AM UTC

In the table I see the IP to which I am connected from the web. 

From the web configuration Configuration > Pollers I see the central server IP 127.0.0.1 but I have also tried to set it to 10.17.0.225 and it still fails.

 

 

Regards.


Forum|alt.badge.img
  • Steward *
  • Jan 17, 2024 12:35 PM UTC

I had similar issue.

Resolved by setting IP for central server instead of localhost on web configuration Configuration and lauching registerServerTopology.sh with IP for -h
 

Regards.