Skip to main content

Hi,

On a new installation with a central server and a remote poller, the poller does not run.
I followed the guide https://www.centreon.com/centreon-troubleshoot-series-episode-1-help-my-poller-is-down/

 


Netstat for poller seems ok :

sudo netstat -plant | egrep '5669|5556'
>sudo] Mot de passe de admcent :
tcp 0 0 0.0.0.0:5556 0.0.0.0:* LISTEN 917/perl
tcp 0 0 192.168.109.212:5556 192.168.109.211:59262 ESTABLISHED 917/perl
tcp 0 0 192.168.109.212:58450 192.168.109.211:5669 ESTABLISHED 1720/centengine

Netstat for central seems ok :

 sudo netstat -plant | egrep '5669|5556'
/sudo] Mot de passe de admcent :
tcp 0 0 0.0.0.0:5669 0.0.0.0:* LISTEN 1198/cbd
tcp 0 0 127.0.0.1:54920 127.0.0.1:5669 ESTABLISHED 1193/centengine
tcp 0 0 127.0.0.1:5669 127.0.0.1:54920 ESTABLISHED 1198/cbd
tcp 0 0 192.168.109.211:5669 192.168.109.212:58450 ESTABLISHED 1198/cbd
tcp 0 0 192.168.109.211:59262 192.168.109.212:5556 ESTABLISHED 1102/gorgone-proxy

When i try to export configuration i have an error

On central i check where is centcore.cmd file but not found

On central /var/log/centreon-broker/central-broker-master.log :

o2024-08-07T17:42:16.127-10:00] 0core] rinfo] Poller '' with id 0 just disconnected
r2024-08-07T17:42:16.127-10:00] 0core] rinfo] multiplexing: '/var/lib/centreon-broker//central-broker-master.queue.central-broker-master-input-1' removed
r2024-08-07T17:42:17.066-10:00] 0core] rinfo] main: termination request received by process 1198
r2024-08-07T17:42:17.067-10:00] 0core] rinfo] unloading applier::endpoint
r2024-08-07T17:42:18.034-10:00] 0core] rinfo] removing 'central-broker-master-input-1' from acceptor 'central-broker-master-input'
r2024-08-07T17:42:18.034-10:00] 0core] rinfo] Destroying muxer 0x7fee10007930 central-broker-master-input-1: number of events in the queue: 0
r2024-08-07T17:42:18.035-10:00] 0core] rinfo] processing acceptor 'central-broker-master-input' finished
r2024-08-07T17:42:18.035-10:00] 0core] rwarning] There is currently no poller 0 connected
r2024-08-07T17:42:18.035-10:00] 0core] rinfo] multiplexing: '/var/lib/centreon-broker//central-broker-master.queue.central-broker-master-input-3' removed
r2024-08-07T17:42:18.036-10:00] 0core] rinfo] Destroying muxer 0x7fee1000b6a0 central-broker-master-input-3: number of events in the queue: 0
r2024-08-07T17:42:18.036-10:00] 0tcp] cerror] Error while reading on socket from 192.168.109.212: Operation canceled
r2024-08-07T17:42:18.138-10:00] 0core] rwarning] There is currently no poller 0 connected
r2024-08-07T17:42:18.138-10:00] 0tcp] cerror] Error while reading on socket from localhost: Operation canceled
r2024-08-07T17:42:18.138-10:00] 0core] rinfo] Destroying muxer 0x55672aa01f90 centreon-broker-rrd: number of events in the queue: 0
r2024-08-07T17:42:18.138-10:00] 0core] rinfo] multiplexing: stopping engine
r2024-08-07T17:42:18.139-10:00] 0core] rinfo] Waiting for the destruction of subscribers
r2024-08-07T17:42:18.139-10:00] 0core] rinfo] modules: closing '/usr/share/centreon/lib/centreon-broker/60-tls.so'
r2024-08-07T17:42:18.139-10:00] 0core] rinfo] protocols: unregistering protocol 'TLS'
r2024-08-07T17:42:18.140-10:00] 0core] rinfo] modules: closing '/usr/share/centreon/lib/centreon-broker/50-tcp.so'
r2024-08-07T17:42:18.140-10:00] 0core] rinfo] protocols: unregistering protocol 'TCP'
r2024-08-07T17:42:18.140-10:00] 0core] rinfo] modules: closing '/usr/share/centreon/lib/centreon-broker/15-stats.so'
r2024-08-07T17:42:18.228-10:00] 0core] rinfo] modules: closing '/usr/share/centreon/lib/centreon-broker/10-neb.so'
r2024-08-07T17:42:18.228-10:00] 0core] rinfo] protocols: unregistering protocol 'BBDO'
r2024-08-07T17:42:18.228-10:00] 0core] rinfo] protocols: unregistering protocol 'compression'
r2024-08-07T17:42:18.228-10:00] 0core] rinfo] protocols: unregistering protocol 'file'
r2024-08-07T17:42:18.228-10:00] 0core] rinfo] protocols: destruction (0 protocols still registered)
r2024-08-07T17:42:18.247-10:00] 0core] rinfo] main: process /usr/sbin/cbd pid:1198 end exit_code:0
r2024-08-07T17:42:22.306-10:00] 0core] rinfo] main: process /usr/sbin/cbd pid:9191 begin
r2024-08-07T17:42:22.306-10:00] 0core] rinfo] Starting the TCP thread pool of 3 threads
r2024-08-07T17:42:22.307-10:00] 0core] rinfo] protocols: registering protocol ('file' (layers 1-3)
r2024-08-07T17:42:22.307-10:00] 0core] rinfo] protocols: registering protocol ('compression' (layers 6-6)
r2024-08-07T17:42:22.307-10:00] 0core] rinfo] protocols: registering protocol ('BBDO' (layers 7-7)
r2024-08-07T17:42:22.313-10:00] 0core] rinfo] start of asio thread 7f46417ff6c0
r2024-08-07T17:42:22.313-10:00] 0core] rinfo] start of asio thread 7f4640ffe6c0
r2024-08-07T17:42:22.313-10:00] 0core] rinfo] start of asio thread 7f46407fd6c0
r2024-08-07T17:42:22.348-10:00] 0core] rinfo] protocols: registering protocol ('TLS' (layers 5-5)
r2024-08-07T17:42:22.348-10:00] 0core] rinfo] protocols: registering protocol ('TCP' (layers 1-4)
r2024-08-07T17:42:22.362-10:00] 0config] ierror] endpoint applier: The configured write filters for the endpoint 'centreon-broker-rrd' contain forbidden filters. These ones are removed
r2024-08-07T17:42:22.362-10:00] 0config] ierror] endpoint applier: The configured read filters for the endpoint 'centreon-broker-rrd' contain forbidden filters. These ones are removed
r2024-08-07T17:42:22.363-10:00] 0core] rinfo] multiplexing: 'centreon-broker-rrd' starts with 0 in queue and the queue file is disable
r2024-08-07T17:42:22.369-10:00] 0core] rinfo] multiplexing: engine started
r2024-08-07T17:42:22.377-10:00] 0core] rinfo] Poller '' with id 0 connected
r2024-08-07T17:42:22.382-10:00] 0core] rinfo] Available connections cleaning: Operation canceled
r2024-08-07T17:42:22.383-10:00] 0core] rwarning] Poller '' with id 0 already known as connected. Replacing it with ''
r2024-08-07T17:42:22.383-10:00] 0core] rinfo] New incoming connection 'central-broker-master-input-1'
r2024-08-07T17:42:22.384-10:00] 0core] rinfo] multiplexing: 'central-broker-master-input-1' starts with 0 in queue and the queue file is disable
r2024-08-07T17:42:26.107-10:00] 0core] rinfo] Available connections cleaning: Operation canceled
r2024-08-07T17:42:26.107-10:00] 0core] rwarning] Poller '' with id 0 already known as connected. Replacing it with ''
r2024-08-07T17:42:26.107-10:00] 0core] rinfo] New incoming connection 'central-broker-master-input-2'
r2024-08-07T17:42:26.108-10:00] 0core] rinfo] multiplexing: 'central-broker-master-input-2' starts with 0 in queue and the queue file is disable

When Central was installed, a poller was configured. How can I delete it if I want to keep only one poller on a dedicated server?


To join the remote poller "collector01" I first used the script "/usr/share/centreon/bin/registerServerTopology.sh -u <API_ACCOUNT> \
-t poller -h <IP_TARGET_NODE> -n <POLLER_NAME>" but it didn't work, so I registered it from the GUI

What do I need to check? 
Thanks for your help.

Patrick

Hi,

I made a new installation without remote poller.
The poller on the central server went running after a restart of the centengine process.

I'm going to add a remote poller but first I'd like to disable the local poller on the central server.
Is there a tutorial to do this?

Thanks

Patrick

 


hello,

I’m not sure you should remove(disable) the the default “central poller” engine, it is used to monitor the pollers themselves, and the central itself (it is pretty important IMO to monitor the pollers as some issue may appear, be it network communication with the remote site, or centreon various daemon not running, the best practive is to have the central, or at least a centralized poller to monitor all the other poller, and the central is already there to do that)

I’m not sure if it is even feasable, but i’ll let a centreonian answer.


Hi,

Thanks Christophe for the feedback, for now I'll leave the poller on the active central.

I added a remote poller but I had 2 errors that are probably related.
1) The poller is not in status running at the central level.
2) When I want to update the remote poller I get the following error:
Moving files... NOK (Could not write into centcore.cmd. Please check file permissions.)
Aborted. 


To register the poller on the central server I used the command :
sudo /usr/share/centreon/bin/registerServerTopology.sh -u admin -t poller -h 192.168.109.221 -n pr-centcoll02 but i have an error : poller register {"message":"Aucune plateforme parente n'a été trouvée pour tout support”} (or something like it in French)

Then I used the central server's web interface to register the remote poller.
The poller was visible from the central server, but the TCP connections were not good on ports 5669 and 5556.

After searching I found that the file /etc/centreon-gorgone/config.d/40-gorgoned.yaml had the wrong owner (root instead of centreon-gorgone)
Once modified and the centreon-gorgoned service restarted, port 5556 was connected from the central server, but still not port 5669.

After searching, I found that in the /etc/centreon-broker/central-module.json file, the host variable in the output section was set to localhost. I replaced it with the ip of the central server and port 5669 was connected to the central server.

I think either I've forgotten something when adding the remote poller via the central's web interface or the procedure described in the documentation isn't right. Or you really need to use the registerServerTopology.sh script, which didn't work on the poller.

Unfortunately, after these modifications, the remote poller did not have status running on the central server.
I searched and found that on the remote poller in /etc/centreon-broker/central-module.json the poller-id did not match the poller id displayed when selecting the remote poller in the web interface. I changed the id (3 in my case) and restarted the central server and the remote poller but still no status running ok.

I looked on the web interface in configuration > Pollers > Broker configuration the config file name is pr-centcoll02-module.json. On the poller this file doesn't exist, so I copied the central-module.json file to create the pr-centcoll02-module.json file.

After restarting the central unit and the remote poller, there's still no status running at yes.

After 2 hours and without having made any other changes, the status running changed to yes, but the status of the central poller changed to no and I had to restart the centengine service to change it back to yes.
At this stage I have the central poller and the remote poller running, but I still can't export the configuration to the remote poller.

If anyone has any ideas, because I can't think of anything.
I've looked for a file named centcore.cmd on the remote poller but I can't find it. Could it be a pipe file?

Thanks

Patrick


Reply