Open rmorandell-pgum opened 2 days ago
i found the problem ..
the statistic module adds the cron from his config (yaml) on "run" function on start of the module ..
if (defined($self->{config}->{cron})) { $self->send_internal_action({ action => 'ADDCRON', data => { content => $self->{config}->{cron} } }); }
when the cron module has not finished loading or starting this doesn't work.
workaround for me: move the cron part from the 40-gorgoned.yaml (-name: statistics part) to a own 40-statistics.yaml under cron.d directory.
BUG REPORT INFORMATION
Versions
centreon-broker-selinux-23.10.11-1.el8.x86_64 centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp-20241010-130148.el8.noarch centreon-plugins-selinux-0.0.8-083704.el8.x86_64 centreon-widget-live-top10-memory-usage-23.10.0-1.el8.noarch centreon-broker-cbmod-23.10.11-1.el8.x86_64 centreon-plugin-Applications-Protocol-Dns-20241010-130148.el8.noarch centreon-widget-global-health-23.10.0-1.el8.noarch centreon-widget-httploader-23.10.0-1.el8.noarch centreon-trap-23.10.17-1.el8.noarch centreon-license-manager-common-23.10.2-1.el8.noarch centreon-plugin-Applications-Monitoring-Centreon-Database-20241010-130148.el8.noarch centreon-widget-servicegroup-monitoring-23.10.0-1.el8.noarch centreon-clib-23.10.11-1.el8.x86_64 centreon-plugin-Applications-Protocol-Ldap-20241010-130148.el8.noarch centreon-widget-host-monitoring-23.10.1-1.el8.noarch centreon-connector-perl-23.10.11-1.el8.x86_64 centreon-engine-selinux-23.10.11-1.el8.x86_64 centreon-plugin-Applications-Protocol-Http-20241010-130148.el8.noarch centreon-widget-tactical-overview-23.10.0-1.el8.noarch centreon-central-23.10.17-1.el8.noarch centreon-auto-discovery-server-23.10.4-1.el8.noarch centreon-plugin-Applications-Monitoring-Centreon-Poller-20241010-130148.el8.noarch centreon-plugin-Operatingsystems-Linux-Snmp-20241010-130148.el8.noarch centreon-widget-single-metric-23.10.0-1.el8.noarch centreon-widget-engine-status-23.10.0-1.el8.noarch centreon-plugin-Virtualization-VMWare-daemon-3.3.2-1.el8.noarch centreon-gorgone-centreon-config-23.10.10-1.el8.noarch centreon-database-23.10.17-1.el8.noarch centreon-engine-daemon-23.10.11-1.el8.x86_64 centreon-it-edition-extensions-23.10.4-1.el8.noarch centreon-gorgoned-selinux-23.10.10-1.el8.noarch centreon-plugin-Hardware-Printers-Generic-Snmp-20241010-130148.el8.noarch centreon-poller-23.10.17-1.el8.noarch centreon-broker-23.10.11-1.el8.x86_64 centreon-widget-live-top10-cpu-usage-23.10.0-1.el8.noarch centreon-broker-cbd-23.10.11-1.el8.x86_64 centreon-plugin-Applications-Databases-Mysql-20241010-130148.el8.noarch centreon-web-23.10.17-1.el8.noarch centreon-plugin-Applications-Monitoring-Centreon-Central-20241010-130148.el8.noarch centreon-perl-libs-23.10.17-1.el8.noarch centreon-connector-ssh-23.10.11-1.el8.x86_64 centreon-web-selinux-23.10.17-1.el8.noarch centreon-plugin-Operatingsystems-Windows-Snmp-20241010-130148.el8.noarch centreon-widget-hostgroup-monitoring-23.10.0-1.el8.noarch centreon-broker-core-23.10.11-1.el8.x86_64 centreon-connector-23.10.11-1.el8.x86_64 centreon-plugin-Network-Cisco-Standard-Snmp-20241010-130148.el8.noarch centreon-widget-graph-monitoring-23.10.0-1.el8.noarch centreon-23.10.17-1.el8.noarch centreon-pp-manager-23.10.3-1.el8.noarch centreon-license-manager-23.10.2-1.el8.noarch centreon-plugin-Applications-Monitoring-Centreon-Map4-Jmx-20241010-130148.el8.noarch centreon-widget-grid-map-23.10.0-1.el8.noarch centreon-common-23.10.17-1.el8.noarch centreon-plugin-Applications-Protocol-Ftp-20241010-130148.el8.noarch centreon-widget-service-monitoring-23.10.0-1.el8.noarch centreon-gorgone-23.10.10-1.el8.noarch centreon-common-selinux-23.10.17-1.el8.noarch centreon-engine-23.10.11-1.el8.x86_64
Operating System
Oracle Linux 8.
How the the component has been installed and versions
Description
The gorgone statistics module has a yaml file containing the cron definitions to get every 5 minutes the broker and engine statistics.
On normal start of gorgone in the log you can see the rows:
2024-11-14 12:09:11 - INFO - [cron] Adding cron definition 'broker_stats' 2024-11-14 12:09:11 - INFO - [cron] Adding cron definition 'engine_stats'
But not always the gorgone is adding this cron definitions. When you try to restart gorgone 20 times 1-2 times the cron definitions are missing what has the effect that in the Plattform status no engine statistics and broker statistics will be shown.
Logs
Here is a log that contains two restarts .. on the first start the cronis missing. On the second restart 30 seconds after the first one the 2 crons has been added correctly.