Skip to main content
Question

Problem with the installation of the collector

  • February 2, 2022
  • 25 replies
  • 453 views

djeff
Forum|alt.badge.img+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

lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 2, 2022

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

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 2, 2022

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

 

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 2, 2022

 

on my poller however it is not present: 

 

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 2, 2022

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


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 2, 2022

 

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

here is what I have : 

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 2, 2022

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

select * from nagios_server\G

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 2, 2022

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

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 2, 2022

Can you give me the result of following SQL request:

select * from cfg_centreonbroker_info where config_group = 'output';

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 3, 2022

hello thank you, here is what I found

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 3, 2022

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
 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 3, 2022

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.

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 3, 2022

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 

 

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 3, 2022

i always have this error 

 

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 3, 2022

I DONT HAVE NOTHING ON INPUT

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 3, 2022

 


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 3, 2022

CENTRAL IP : 192.168.9.89

POLLER IP : 192.168.9.79


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 4, 2022

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.


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 4, 2022

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,


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 4, 2022

.


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 4, 2022

i have error


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 4, 2022

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 8, 2022

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


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 8, 2022

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


djeff
Forum|alt.badge.img+2
  • Author
  • Steward *
  • 16 replies
  • February 8, 2022

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • 1120 replies
  • February 8, 2022

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

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