Skip to main content

Hi everyone,

I installed a poller on a Raspberry Pi 4. The Centreon central server is hosted on a VM (so they are not on the same local network).

After creating the poller, I ran the following command:

bash /usr/share/centreon/bin/registerServerTopology.sh -u <API_USER> -t poller -h <CENTRAL_IP> -n <POLLER_NAME>

The poller appears in the Centreon interface. I selected it, copied the configuration provided by the interface, applied it to the Raspberry Pi, then restarted Gorgone on both sides. I also exported the configuration from Centreon.

But the poller still doesn't run.

In the Gorgone logs, I see the following message:
ERROR - [proxy] Send message problem for '8':

Do you think this could be the issue?

Thanks in advance for any help.

hi, 

could the centreon central reach your poller with the gorgone port?

 

 

regards

jboss


Hi,

Thanks a lot for your reply!

From the Centreon Central server, I tried telnet <poller_IP> 5556Connection refused immediately.
From the poller, I tried telnet <central_IP> 5669Connection successful, but closed by foreign host right after.

Here are the open ports I can see using netstat or ss:

 On the poller:

tcp 0 0 0.0.0.0:5556 0.0.0.0:* LISTEN

This shows that Gorgone is listening on all interfaces (0.0.0.0) on port 5556.

 

 On the central:

tcp 0 0 0.0.0.0:5669 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:38752 127.0.0.1:5669 ESTABLISHED tcp 0 0 127.0.0.1:5669 127.0.0.1:38752 ESTABLISHED

So Centreon-Broker is listening on port 5669, with a local established connection between two processes.

Let me know if there's anything specific I should try or check next.

Thanks again for your help!
Best regards,


Hi,

Thanks a lot for your reply!

From the Centreon Central server, I tried telnet <poller_IP> 5556  Connection refused immediately.


From the poller, I tried telnet <central_IP> 5669  Connection successful, but closed by foreign host right after.

Here are the open ports I can see using netstat or ss:

On the poller:

tcp 0 0 0.0.0.0:5556 0.0.0.0:* LISTEN

 

On the central:

tcp 0 0 0.0.0.0:5669 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:38752 127.0.0.1:5669 ESTABLISHED tcp 0 0 127.0.0.1:5669 127.0.0.1:38752 ESTABLISHED

 

Let me know if there's anything specific I should try or check next.

Thanks again for your help!
Best regards,


Hello ​@fducos 

by default gorgone work in “push” mode, which mean the central connect to the poller.

your first test show that you have a firewall blocking the port 5556 from the central to the poller, you need to change your firewall to allow this.

 

If this is not possible, you can use another gorgone communication mode “pull” where the poller connect to the central 

Doc is here : https://docs.centreon.com/docs/developer/developer-gorgone-pull-mode/

But notice this is more configuration and harder to maintain on the long run (you need to configure a file on your central with a list of each poller in addition to the webapp configuration) so changing your firewall rule is recommended.


Hi ​@evanadam 

Thanks for your response ! Yes, I just needed to open the port on my router's firewall, and now everything works perfectly. Thanks again for your help !

 


Reply