Question

Can't connect poller to central server

  • 10 February 2023
  • 18 replies
  • 1328 views

Userlevel 2
Badge +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

Userlevel 4
Badge +13

👋

 

@aalz0 

 

 

🤔

Userlevel 2
Badge +8

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.

Userlevel 4
Badge +13

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;

Userlevel 2
Badge +8

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…

 

Userlevel 4
Badge +13

@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?

 

 

Userlevel 2
Badge +8

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.

Userlevel 2
Badge +8

Any idea @Laurent ?

Userlevel 4
Badge +13

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.

Userlevel 2
Badge +8

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

Userlevel 6
Badge +18

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.

Userlevel 2
Badge +8

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

Userlevel 2
Badge +8

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

Userlevel 4
Badge +14

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

Badge +1

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.

Userlevel 6
Badge +18

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?

Badge +1

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.

Badge +1

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.

Badge

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.

Reply