Outils pour utilisateurs

Outils du site


tech:notes_centreon

Ceci est une ancienne révision du document !


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

/etc/centreon-engine/resource.cfg
$USER1$=/usr/lib64/nagios/plugins
$CENTREONPLUGINS$=/usr/lib/centreon/plugins

Conf via WebUI

Laisser les valeurs par défaut jusqu'à l'écran 4

Puis à l'écran 5:

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/centreon-docker/templates/env.sh.j2]
Database user password : idem
Dialogbox "Feature testing" => "No"
Login
Configuration
Pollers
Check "Central"
Clic "Export configuration"
check all and select "Restart" Method

Mise à jour

Reset mot de passe

Exemple pour admin / centreon

INSERT INTO contact_password (password, contact_id, creation_date) VALUES ('$2y$10$ubq1hJ9z3YPXBhejjae.Ie9u3AcMrwFNImPhOnnkLmEoNtwRGwNrC', 1, (SELECT UNIX_TIMESTAMP(NOW())));

Logs

Partition DB

Voir :

mysql -u centreon -p centreon_storage
ALTER TABLE logs REMOVE PARTITIONING;
su - centreon
php /usr/share/centreon/cron/centstorage_purge.php
 
php /usr/share/centreon/bin/centreon-partitioning.php -m data_bin
php /usr/share/centreon/bin/centreon-partitioning.php -m log_archive_service
php /usr/share/centreon/bin/centreon-partitioning.php -m log_archive_host
php /usr/share/centreon/bin/centreon-partitioning.php -m logs

Autres

1

systemctl status cbd centengine gorgoned httpd

2

rm -f /var/lib/centreon/metrics/*
rm -f /var/lib/centreon/status/*
rm -f  /var/lib/centreon/nagios-perf/*/*

3

mysql -u centreon -p centreon_storage
DELETE logs_old ;
TRUNCATE logs ;
 
TRUNCATE servicestateevents ;
 
DELETE FROM data_bin WHERE id_metric NOT IN (SELECT metric_id FROM metrics) ;
su - centreon -c "/usr/share/centreon/cron/eventReportBuilder -r"
#su - centreon -c "/usr/share/centreon/cron/dashboardBuilder -r"
 
# CRON
su - centreon -c "/usr/share/centreon/cron/eventReportBuilder --config=/etc/centreon/conf.pm"
su - centreon -c "/usr/share/centreon/cron/dashboardBuilder --config=/etc/centreon/conf.pm"

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)
           Requires: nagios-plugins = 1.4.16-10.el7.centos
           Available: nagios-plugins-1.4.16-10.el7.centos.x86_64 (centreon-stable)
               nagios-plugins = 1.4.16-10.el7.centos
           Installing: nagios-plugins-2.3.3-2.el7.x86_64 (epel)
               nagios-plugins = 2.3.3-2.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
 

Solution

# repoquery --location centreon-plugins
http://yum.centreon.com/standard/3.4/el7/stable/noarch/RPMS/centreon-plugins-2.8.32-1.el7.centos.noarch.rpm
rpm -Uvh --nodeps $(repoquery --location centreon-plugins)
tech/notes_centreon.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki