Question

Problem with the installation of the collector

  • 2 February 2022
  • 25 replies
  • 369 views

Badge +2

Hello to all the community; 
I'm currently experiencing different problems when setting up my collector; when I do "export configuration" I get no error message, nothing comes up; no information comes up; 

in the settings of the collector, on my poller it shows me an error of communication with the gorgoned, after having made a systemctl status on the gorgoned process, I see that it is well in running on my poller and my central; no information goes up.

I put some images if a valiant could help me I would be grateful; I must set up a server of supervision to be able to validate my memory.

 


25 replies

Userlevel 6
Badge +18

HI @djeff ,

 

During the generation of configuration files, the Web server (Apache) will write files into /var/cache/centreon/config sub directories (broker, engine, etc.).

Can you check is apache is member of centreon group?

# cat /etc/group | grep centreon
centreon:x:994:centreon-engine,centreon-broker,apache,centreon-gorgone
nagios:x:993:centreon-engine,centreon-broker,apache
apache:x:48:nagios,centreon,centreon-gorgone
centreon-broker:x:992:centreon,nagios,centreon-engine,apache,centreon-gorgone
centreon-engine:x:990:centreon-broker,apache,nagios,centreon,centreon-gorgone,centreon-agent
centreon-gorgone:x:984:centreon,apache,centreon-broker,centreon-engine

Can you check rights on /var/cache/centreon/config?

# ls -lah /var/cache/centreon/config/
total 0
drwxrwsr-x 5 centreon centreon 48 Nov 3 12:09 .
drwxrwxr-x 5 centreon centreon 49 Nov 3 15:02 ..
drwxrwsr-x 2 centreon centreon 6 Nov 2 16:26 broker
drwxrwsr-x 2 centreon centreon 6 Nov 2 16:26 engine
drwxrwsr-x 2 centreon centreon 6 Nov 2 16:26 export

 

Badge +2

hello, thank you for your answer, here are the verifications I made:

 

 

Badge +2

 

on my poller however it is not present: 

 

 

Userlevel 6
Badge +18

Yes once the configuration files have been generated, apache ask to Centreon Gorgone (gorogned) to move files to their final destination (/etc/centreon-engine and /etc/centreon-broker) on poller.

When you generate the configuration, can you have a look to /var/log/php-fpm/centreon-error.log file and put here errors that can appear

Badge +2

 

after exporting the configuration on my collector I made : cat /var/log/php-fpm/centreon-error.log

here is what I have : 

 

Userlevel 6
Badge +18

 Can you execute the following SQL request on ‘centreon’ database:

select * from nagios_server\G

 

Badge +2

thank you, here is what I found in my database: 
 

 

Userlevel 6
Badge +18

Can you give me the result of following SQL request:

select * from cfg_centreonbroker_info where config_group = 'output';

 

Badge +2

hello thank you, here is what I found

 

Badge +2

I wanted to mention that I have recently changed the ip address of my server, it is no longer 192.168.9.70, but 192.168.9.89.

normally this should not have any impact.

especially since I already had this problem with the ip address 192.168.9.70
 

Userlevel 6
Badge +18

If you change the IP address of your Centreon central server, you must change the IP in the Centreon Broker configuration too.

Please edit all the broker configuration and change IP address in the “output” tab for “IPv4” entries.

 

Badge +2

ok, on the web server i changed the ip of the central broker as revenue : i also show you the poller broker in picture 

 

 

WHEN I DO "export configuration" I get an error message in my temp_; I looked at it and I don't think it's a legal problem or I'm wrong 

 

 

Badge +2

i always have this error 

 

 

Badge +2

I DONT HAVE NOTHING ON INPUT

 

Badge +2

 

Badge +2

CENTRAL IP : 192.168.9.89

POLLER IP : 192.168.9.79

Userlevel 6
Badge +18

For the “Centreon Broker module” output on the Central server as well as the poller, you should put 192.168.9.89. Both need to connect to the “Centreon Broker Master” to inject data into MariaDB.

Userlevel 6
Badge +18

Can you send me a dump of your ‘centreon’ database in MP to make tests on a VM?

mysqldump -u root centreon -p > /tmp/20220204.centreon.sql
tar -czf /tmp/20220204.centreon.tar.gz /tmp/20220204.centreon.sql

Regards,

Badge +2

.

Badge +2

i have error

Badge +2

 

Userlevel 6
Badge +18

Hi @djeff the mysqldump command is a shell/bash command :wink:

Badge +2

please help, i dont know how to do, everything i did i had error 

Badge +2

 

Userlevel 6
Badge +18

You forgot “/” before directory name using tar command:

tar -czf /tmp/20220204.centreon.tar.gz /tmp/20220204.centreon.sql

 

Reply