Skip to main content
Question

error when deactivating a host

  • November 7, 2024
  • 8 replies
  • 96 views

Forum|alt.badge.img+2

 

Hey
When I want to deactivate a host from Centreon because the host has been summered and after restarting the poller, nothing happens.
I have to go CLI on the Centreon server and use “systemctl reload cbd ou centreon” to remove the host.

Have you ever had this happen?I am using version 24.04.7 of Centreon.Best regards

8 replies

philipraets
Forum|alt.badge.img+5
  • Steward **
  • November 7, 2024

Hi,

what commands are defined when you go to the configuration of you poller?

(Goto “Pollers”=> “click on your poller”)

 

 


Forum|alt.badge.img+2
  • Author
  • Steward *
  • November 7, 2024
EDITHere is an image capture

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • November 7, 2024

Hi @Undef1ned, if you modify your configuration, you need to generate configuration and export it.

If you did this and you have issue, it means that an error appears with Centreon gorgone process, please check /var/log/centreon-gorgone/gorgoned.log file.


Forum|alt.badge.img+2
  • Author
  • Steward *
  • November 7, 2024

Modify my configuration ?

Here is the message I have in the log “/var/log/centreon-gorgone/gorgoned.log”

 


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • November 8, 2024

Can you check the content of /etc/centreon/config.d/10-database.yaml file?


Forum|alt.badge.img+2
  • Author
  • Steward *
  • November 8, 2024
Yes, I have an account called “centreon”

Forum|alt.badge.img+2
  • Author
  • Steward *
  • November 28, 2024
For me it must be an access problem given the image, but I really can't find the problem

Forum|alt.badge.img+3
  • Centreonian
  • December 3, 2024

Hello ​@Undef1ned 
seem like your dsn is not correctly configured.

In the file /etc/centroen/config.d/10-database.yaml, you should have something like this :
 

you can see a part “host=localhost” present in the dsn because my database is installed on the same host as my web interface. if you db is installed on another server then the ip/fqdn of this database server should be present instead.

You can test the connexion with mysql client :

mysql -u centreon -ppassword -h localhost -P3306 centreon