Update Version of Centreon inferior to Centreon2-RC5/fr

From Wiki Centreon

Jump to: navigation, search

Cet article porte sur la nouvelle génération de rapport de Centreon (reporting, dashboard), en effet, le moteur de reporting à changé pour plusieurs raisons :

  • L'amélioration de la méthode de traitement des données et du temps d'éxecution du moteur de reporting.
  • l'accès aux données plus rapide sur l'interface Web Centreon.

Contents

Le moteur de reporting depuis Centreon 2 RC5

Pour la génération des rapports, deux tables différentes contiennent les données :

  • log_archive_host
  • log_archive_service

Ces tables sont mises à jour quotidiennement pour le jour précédent en lisant le fichier de journalisation de Nagios (par défaut archivé dans le répertoire "nagios/var/archives").

But at the same time, an exec file logAnalyser is run every minute to enter nagios logs in the table log of Centstorage. That's why we changed the method of filling the tables log_archive_host and log_archive_service.

Reporting engine with Centreon2-RC5

Data to update log_archive_host and log_archive_service are retrieved, every day, from the table log of centstorage. The exec archiveDayLog (in centreon/cron/) performs this action. The table "log_archive_last_status" store last status of each host and service which statistics was entered in "log_archive_host" and "log_archive_service". This fix main bugs that we had we the last reporting engine.

Les différentes étapes de la mise à jour

How to upgrade the new reporting dashboard?

As the tables log_archive_host and log_archive_service underwent few modifications. We have rebuild theses two tables data rows : centreon/cron/archiveDayLog truncate these tables and retrieve data from the table log to re-calculate statistics on hosts and services.

But as the table log has a retention period (1 month by default). If some hosts and services have been checked by Nagios before the last month, their logs must be re-integrated in the table log in order to build statistics to the entire running period of Nagios.

So :

  • first step : re-integrate all nagios logs by executing (only if nagios is running for over the retention period of logs in Centstorage, default is one month)
  • root@centreon/bin/#./logAnalyser -a
    
  • second step : rebuild hosts and services statistics with :
  • root@centreon/cron/#./archiveDaylog -r
    

There is still one bug left : some services are reported as undetermined at 100% even if they where checked by Nagios. It will be corrected in centreon2-RC6.

En cas de problème

  • Vérifier que la table log_archive_last_status existe dans la base de donnée "centstorage".
  • Vérifier que le champ UNDETERMINEDTimeScheduled a été créé dans les tables log_archive_host et log_archive_service.
  • Vérifier qu'il y a des données dans les tables log, log_archive_host et log_archive_service de la base de donnée "centstorage".

Tentez de reconstruire les données en exécutant le script "archiveDaylog":

 root@centreon/cron/#./archiveDaylog -r

Si cela ne fonctionne pas, il s'agit peut être d'un bug, merci de nous en avertir via le "bug tracker" ou le forum de discussion.

IN ANY CASE, AS LONG AS YOU HAVE NAGIOS LOG FILES IN NAGIOS ARCHIVES PATH, YOU WILL BE ABLE TO RECOVER YOUR REPORTING DASHBOARD.

Personal tools