tech:notes_centreon
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:notes_centreon [2025/05/31 22:02] – Jean-Baptiste | tech:notes_centreon [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes Centreon | ||
| + | |||
| + | ** Je vous conseille de ne pas mettre en place Centreon ** | ||
| + | Si vous avez besion d'une solution de supervision vous pouvez essayer Zabbix | ||
| + | |||
| + | |||
| + | ## Généralités | ||
| + | |||
| + | `/ | ||
| + | ~~~python | ||
| + | $USER1$=/ | ||
| + | $CENTREONPLUGINS$=/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Conf via WebUI | ||
| + | |||
| + | Laisser les valeurs par défaut jusqu' | ||
| + | |||
| + | Puis à l' | ||
| + | ~~~ | ||
| + | password : yieCh4ha | ||
| + | Firt name : admin | ||
| + | Last name : admin | ||
| + | email : root@localhost | ||
| + | ~~~ | ||
| + | |||
| + | Ecran 6 | ||
| + | ~~~ | ||
| + | Database Host Address (default: localhost) : 192.168.5.1 | ||
| + | Root password : [See roles/ | ||
| + | Database user password : idem | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | Dialogbox " | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | Login | ||
| + | Configuration | ||
| + | Pollers | ||
| + | Check " | ||
| + | Clic " | ||
| + | check all and select " | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Mise à jour | ||
| + | |||
| + | * Mettre à jour les paquets | ||
| + | * Mettre à jours les extensions via le Extensions Manager | ||
| + | * Mise à jour des Plugin Packs | ||
| + | * Lancer la procédure http:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ## Reset mot de passe | ||
| + | |||
| + | Exemple pour admin / centreon | ||
| + | ~~~sql | ||
| + | INSERT INTO contact_password (password, contact_id, creation_date) VALUES (' | ||
| + | ~~~ | ||
| + | |||
| + | ## Logs | ||
| + | |||
| + | ### Partition DB | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ~~~bash | ||
| + | mysql -u centreon -p centreon_storage | ||
| + | ~~~ | ||
| + | ~~~sql | ||
| + | ALTER TABLE logs REMOVE PARTITIONING; | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | su - centreon | ||
| + | php / | ||
| + | |||
| + | php / | ||
| + | php / | ||
| + | php / | ||
| + | php / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | 1 | ||
| + | ~~~bash | ||
| + | systemctl status cbd centengine gorgoned httpd | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | 2 | ||
| + | ~~~bash | ||
| + | rm -f / | ||
| + | rm -f / | ||
| + | rm -f / | ||
| + | ~~~ | ||
| + | |||
| + | 3 | ||
| + | ~~~bash | ||
| + | mysql -u centreon -p centreon_storage | ||
| + | ~~~ | ||
| + | |||
| + | ~~~sql | ||
| + | DELETE logs_old ; | ||
| + | TRUNCATE logs ; | ||
| + | |||
| + | TRUNCATE servicestateevents ; | ||
| + | |||
| + | DELETE FROM data_bin WHERE id_metric NOT IN (SELECT metric_id FROM metrics) ; | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | su - centreon -c "/ | ||
| + | #su - centreon -c "/ | ||
| + | |||
| + | # CRON | ||
| + | su - centreon -c "/ | ||
| + | su - centreon -c "/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Pb | ||
| + | |||
| + | ~~~ | ||
| + | # yum install -y centreon-base-config-centreon-engine centreon | ||
| + | --> Finished Dependency Resolution | ||
| + | Error: Package: nagios-plugins-perl-1.4.16-10.el7.centos.x86_64 (centreon-stable) | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | You could try using --skip-broken to work around the problem | ||
| + | You could try running: rpm -Va --nofiles --nodigest | ||
| + | ~~~ | ||
| + | |||
| + | Solution | ||
| + | ~~~bash | ||
| + | # repoquery --location centreon-plugins | ||
| + | http:// | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | rpm -Uvh --nodeps $(repoquery --location centreon-plugins) | ||
| + | ~~~ | ||
| + | |||
