Skip to main content

Hi Guys,

Need help.
 

I’m unable to see anything in Extension Manager. I have just installed Centreon.
License\Token is added.

 

 

Hi @jnewtocentreon which version of Centreon did you installed?

Can you see error in /var/log/php-fpm/centreon-error.log when you access to this page?

Regards,


Hi @Laurent,
The above issue is fixed, but there is now a new issue.
When I add any new hosts, they don’t show up in Centreon dashboard, they only show up when I restart my centreon server.

Could you please help me with this?


When you configure resources, you need to deploy configuration: https://docs.centreon.com/docs/monitoring/monitoring-servers/deploying-a-configuration/


@Laurent 
Yes, I even deploy configuration, but still it is not showing.
It only shows if I restart the centreon server


gorgoned process is started?


may I know which command should I use to check the gorogned process is running in centreon server?


you can use: 

systemctl status gorgoned

 

 


Yes, it is running.
 

systemctl status gorgoned
* gorgoned.service - Centreon Gorgone
Loaded: loaded (/etc/systemd/system/gorgoned.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2023-08-25 13:42:58 BST; 3 days ago
Main PID: 968 (perl)
Tasks: 48 (limit: 23222)
Memory: 874.7M
CGroup: /system.slice/gorgoned.service
|- 968 /usr/bin/perl /usr/bin/gorgoned --config=/etc/centreon-gorgone/config.yaml --logfile=/var/log/centreon-gorgone/gorgoned.log --severity=error
|-1586 gorgone-engine
|-1587 gorgone-audit
|-1588 gorgone-httpserver
|-1589 gorgone-legacycmd
|-1590 gorgone-cron
|-1591 gorgone-statistics
|-1592 gorgone-nodes
|-1594 gorgone-action
|-1596 gorgone-autodiscovery
|-1597 gorgone-proxy
|-1599 gorgone-proxy
|-1600 gorgone-proxy
|-1601 gorgone-proxy
|-1602 gorgone-proxy
`-1603 gorgone-dbcleaner

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

 


when you export your configuration, do you have errors in /var/log/centreon-gorgone/gorgoned.log?


This is what I see in the log: /var/log/centreon-gorgone/gorgoned.log


2023-08-21 22:30:00 - ERROR - autodiscovery] -servicediscovery- 0bb3c421:1 no rules found in configuration
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-22 22:30:00 - ERROR - MySQL server has gone away
2023-08-22 22:30:01 - ERROR - MySQL server has gone away
2023-08-22 22:30:02 - ERROR - autodiscovery] -servicediscovery- 1ddc2d29:2 no rules found in configuration
2023-08-22 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
2023-08-22 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-23 13:55:06 - ERROR - MySQL server has gone away
2023-08-23 13:55:07 - ERROR - MySQL error : cannot connect to database 'mysql:host=localhost:port=3306;dbname=centreon_storage': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: gorgone::class::db:/usr/share/perl5/vendor_perl/gorgone/class/db.pm:339) (try: 0)
2023-08-23 13:55:18 - ERROR - MySQL server has gone away
(in cleanup) (in cleanup) at /usr/share/perl5/vendor_perl/gorgone/class/http/backend/curl.pm line 274 during global destruction.
2023-08-23 11:45:00 - ERROR - autodiscovery] -class- host discovery - cannot get platform versions - http request error
2023-08-23 22:30:00 - ERROR - autodiscovery] -servicediscovery- 5c460072:1 no rules found in configuration
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-24 22:30:00 - ERROR - MySQL server has gone away
2023-08-24 22:30:01 - ERROR - MySQL server has gone away
2023-08-24 22:30:02 - ERROR - autodiscovery] -servicediscovery- 30a1c5c5:2 no rules found in configuration
2023-08-24 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
2023-08-24 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
(in cleanup) (in cleanup) at /usr/share/perl5/vendor_perl/gorgone/class/http/backend/curl.pm line 274 during global destruction.
(in cleanup) (in cleanup) at /usr/share/perl5/vendor_perl/gorgone/class/tpapi/centreonv2.pm line 195 during global destruction.
2023-08-25 22:30:00 - ERROR - autodiscovery] -servicediscovery- b614f231:1 no rules found in configuration
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-26 22:30:00 - ERROR - MySQL server has gone away
2023-08-26 22:30:01 - ERROR - MySQL server has gone away
2023-08-26 22:30:02 - ERROR - autodiscovery] -servicediscovery- 42fef52d:2 no rules found in configuration
2023-08-26 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
2023-08-26 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-27 22:30:00 - ERROR - MySQL server has gone away
2023-08-27 22:30:01 - ERROR - MySQL server has gone away
2023-08-27 22:30:02 - ERROR - autodiscovery] -servicediscovery- b62866fa:3 no rules found in configuration
2023-08-27 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.

 


@Laurent 

This is what I see in the logs:  /var/log/centreon-gorgone/gorgoned.log

2023-08-21 22:30:00 - ERROR -  autodiscovery] -servicediscovery- 0bb3c421:1 no rules found in configuration
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-22 22:30:00 - ERROR - MySQL server has gone away
2023-08-22 22:30:01 - ERROR - MySQL server has gone away
2023-08-22 22:30:02 - ERROR - autodiscovery] -servicediscovery- 1ddc2d29:2 no rules found in configuration
2023-08-22 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
2023-08-22 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-23 13:55:06 - ERROR - MySQL server has gone away
2023-08-23 13:55:07 - ERROR - MySQL error : cannot connect to database 'mysql:host=localhost:port=3306;dbname=centreon_storage': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: gorgone::class::db:/usr/share/perl5/vendor_perl/gorgone/class/db.pm:339) (try: 0)
2023-08-23 13:55:18 - ERROR - MySQL server has gone away
(in cleanup) (in cleanup) at /usr/share/perl5/vendor_perl/gorgone/class/http/backend/curl.pm line 274 during global destruction.
2023-08-23 11:45:00 - ERROR - autodiscovery] -class- host discovery - cannot get platform versions - http request error
2023-08-23 22:30:00 - ERROR - autodiscovery] -servicediscovery- 5c460072:1 no rules found in configuration
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-24 22:30:00 - ERROR - MySQL server has gone away
2023-08-24 22:30:01 - ERROR - MySQL server has gone away
2023-08-24 22:30:02 - ERROR - autodiscovery] -servicediscovery- 30a1c5c5:2 no rules found in configuration
2023-08-24 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
2023-08-24 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
(in cleanup) (in cleanup) at /usr/share/perl5/vendor_perl/gorgone/class/http/backend/curl.pm line 274 during global destruction.
(in cleanup) (in cleanup) at /usr/share/perl5/vendor_perl/gorgone/class/tpapi/centreonv2.pm line 195 during global destruction.
2023-08-25 22:30:00 - ERROR - autodiscovery] -servicediscovery- b614f231:1 no rules found in configuration
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-26 22:30:00 - ERROR - MySQL server has gone away
2023-08-26 22:30:01 - ERROR - MySQL server has gone away
2023-08-26 22:30:02 - ERROR - autodiscovery] -servicediscovery- 42fef52d:2 no rules found in configuration
2023-08-26 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
2023-08-26 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.
2023-08-27 22:30:00 - ERROR - MySQL server has gone away
2023-08-27 22:30:01 - ERROR - MySQL server has gone away
2023-08-27 22:30:02 - ERROR - autodiscovery] -servicediscovery- b62866fa:3 no rules found in configuration
2023-08-27 22:30:02 - ERROR - autodiscovery] decrypt issue: no message
Use of uninitialized value $1 in lc at /usr/share/perl5/vendor_perl/gorgone/modules/core/cron/class.pm line 400.

 


Hi, there is a lot of error with access to the DBMS.

Can you check your parameters in /etc/centreon/config.d/10-database.yaml?


cat /etc/centreon/config.d/10-database.yaml
database:
  db_configuration:
    dsn: "mysql:host=localhost:port=3306;dbname=centreon"
    username: "centreon"
    password: "XXXXXXXX"
  db_realtime:
    dsn: "mysql:host=localhost:port=3306;dbname=centreon_storage"
    username: "centreon"
    password: "XXXXXXXX"

 


Hello,

For this issue :

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

could you try to put 127.0.0.1 instead of localhost in you configuration file ?

 


@jnewtocentreon did you find the solution? I also have the same error on my centreon. 

2024-05-12 22:30:00 - ERROR - MySQL server has gone away
2024-05-12 22:30:01 - ERROR - MySQL server has gone away

 

checked status of centreon db, able to connect, mysql check all ok. 

 

seems like a timeout error after i changed the root password of my machine which hosts centreon. not sure where to update it. 


Reply