centreon / centreon-broker

A full-featured monitoring event broker, compatible with MySQL, RRDtool, Graphite and more
Apache License 2.0
37 stars 15 forks source link

Centreon broker conflict manager #432

Closed samyjc closed 4 years ago

samyjc commented 4 years ago

BUG REPORT INFORMATION

Prerequisites

The opened issue, must be code related. GitHub is not meant for support. Feel free to check the CONTRIBUTING section for more details.

Versions

For the RPM based systems

-- Copy/Paste the result of the following command --

$ rpm -qa | grep centreon
centreon-clib-20.04.0-7.el7.centos.x86_64
centreon-widget-tactical-overview-20.04.0-5.el7.centos.noarch
centreon-plugin-Hardware-Ups-Mge-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Printers-Generic-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Switchs-Hp-Procurve-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-H3c-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Central-20200602-094050.el7.centos.noarch
centreon-trap-20.04.3-5.el7.centos.noarch
centreon-broker-20.04.5-1.el7.centos.x86_64
centreon-widget-servicegroup-monitoring-20.04.0-5.el7.centos.noarch
centreon-widget-global-health-20.04.0-5.el7.centos.noarch
centreon-gorgone-20.04.2-1.el7.centos.noarch
centreon-license-manager-20.04.2-1.el7.centos.noarch
centreon-plugin-Hardware-Ups-Powerware-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Storage-Qnap-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-3com-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Firewalls-Fortinet-Fortigate-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Virtualization-Vmware2-Esx-Wsman-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Cisco-Standard-Snmp-20200602-094050.el7.centos.noarch
centreon-20.04.3-5.el7.centos.noarch
centreon-release-20.04-1.el7.centos.noarch
centreon-engine-20.04.1-1.el7.centos.x86_64
centreon-widget-httploader-20.04.0-5.el7.centos.noarch
centreon-widget-graph-monitoring-20.04.0-5.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-20.04.0-5.el7.centos.noarch
centreon-connector-ssh-20.04.0-2.el7.centos.x86_64
centreon-pp-manager-20.04.1-1.el7.centos.noarch
centreon-gorgone-centreon-config-20.04.2-1.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ftp-20200602-094050.el7.centos.noarch
centreon-plugin-Operatingsystems-Linux-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Ups-Hp-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Storage-Hitachi-Hnas-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Cisco-Voice-Gateway-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Servers-Hp-Blade-Chassis-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Cisco-Wlc-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Servers-Cisco-Ucs-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Databases-Mssql-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Cisco-Prime-Restapi-20200602-094050.el7.centos.noarch
centreon-plugin-Operatingsystems-Windows-Snmp-20200602-094050.el7.centos.noarch
centreon-common-20.04.3-5.el7.centos.noarch
centreon-web-20.04.3-5.el7.centos.noarch
centreon-broker-core-20.04.5-1.el7.centos.x86_64
centreon-plugin-Discovery-Nmap-20181019-1.el7.noarch
centreon-engine-daemon-20.04.1-1.el7.centos.x86_64
centreon-widget-hostgroup-monitoring-20.04.0-5.el7.centos.noarch
centreon-connector-20.04.0-2.el7.centos.x86_64
centreon-license-manager-common-20.04.2-1.el7.centos.noarch
centreon-widget-service-monitoring-20.04.2-1.el7.centos.noarch
centreon-plugins-base-1.18-2.el7.centos.noarch
centreon-plugin-Hardware-Ups-Nitram-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Poller-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Servers-Ibm-Bladecenter-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Dlink-Standard-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Switchs-Moxa-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ldap-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Protocol-Dns-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Switchs-Cisco-Smallbusiness-Standard-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Protocol-Http-20200602-094050.el7.centos.noarch
centreon-auto-discovery-server-20.04.2-2.el7.centos.noarch
centreon-perl-libs-20.04.3-5.el7.centos.noarch
centreon-base-config-centreon-engine-20.04.3-5.el7.centos.noarch
centreon-plugin-Virtualization-Vmware2-Connector-Plugin-20200602-094050.el7.centos.noarch
centreon-broker-cbd-20.04.5-1.el7.centos.x86_64
centreon-widget-host-monitoring-20.04.3-2.el7.centos.noarch
centreon-widget-live-top10-memory-usage-20.04.0-5.el7.centos.noarch
centreon-widget-engine-status-20.04.1-1.el7.centos.noarch
centreon-plugin-Network-Fortinet-Fortimanager-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Virtualization-VMWare-daemon-3.1.2-20200602093832.el7.centos.noarch
centreon-plugin-Hardware-Ups-Alpha-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Ups-Apc-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Servers-Dell-IDrac-Snmp-20200602-094050.el7.centos.noarch
centreon-database-20.04.3-5.el7.centos.noarch
centreon-broker-cbmod-20.04.5-1.el7.centos.x86_64
centreon-engine-extcommands-20.04.1-1.el7.centos.x86_64
centreon-widget-grid-map-20.04.0-5.el7.centos.noarch
centreon-connector-perl-20.04.0-2.el7.centos.x86_64
centreon-plugin-Applications-Monitoring-Centreon-Map4-Jmx-20200602-094050.el7.centos.noarch
centreon-plugin-Hardware-Devices-Video-Axis-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Database-20200602-094050.el7.centos.noarch
centreon-plugin-Network-Cisco-Callmanager-Snmp-20200602-094050.el7.centos.noarch
centreon-plugin-Applications-Databases-Mysql-20200602-094050.el7.centos.noarch
centreon-poller-centreon-engine-20.04.3-5.el7.centos.noarch
centreon-broker-storage-20.04.5-1.el7.centos.x86_64

Operating System

CentOS, Debian ... CentOS Linux release 7.8.2003 (Core)

How the the component has been installed and versions

Version: --

Additional environment details (AWS, VirtualBox, physical, etc.):

Description

-- Describe the encountered issue --

Steps to Reproduce

Please describe precisely the steps to reproduce the encountered issue.

  1. I logged in Centreon
  2. I reached the Custom View
  3. And so on...

Describe the received result

Describe the expected result

Logs

PHP error logs

tail -f /var/opt/rh/rh-php72/log/php-fpm/centreon-error.log

centreon-engine logs (if needed)

tail -f /var/log/centreon-engine/centengine.log

centreon-broker logs (if needed)

tail -f /var/log/centreon-broker/central-broker-master.log
[1592255922] error:   conflict_manager: error in the main loop: storage: insertion of metric 'cpu_total_EOT-bt-srvv4_tra▒a' of index 1436541 failed: Incorrect string value: '\xE7a' for column `centreon_storage`.`metrics`.`metric_name` at row 1
[1592255923] error:   conflict_manager: error in the main loop: storage: insertion of metric 'cpu_total_EOT-bt-srvv4_tra▒a' of index 1436541 failed: Incorrect string value: '\xE7a' for column `centreon_storage`.`metrics`.`metric_name` at row 1
[1592255923] error:   conflict_manager: error in the main loop: storage: insertion of metric 'cpu_total_EOT-bt-srvv4_tra▒a' of index 1436541 failed: Incorrect string value: '\xE7a' for column `centreon_storage`.`metrics`.`metric_name` at row 1
[1592255923] error:   conflict_manager: error in the main loop: storage: insertion of metric 'cpu_total_EOT-bt-srvv4_tra▒a' of index 1436541 failed: Incorrect string value: '\xE7a' for column `centreon_storage`.`metrics`.`metric_name` at row 1
[1592255923] error:   conflict_manager: error in the main loop: storage: insertion of metric 'cpu_total_EOT-bt-srvv4_tra▒a' of index 1436541 failed: Incorrect string value: '\xE7a' for column `centreon_storage`.`metrics`.`metric_name` at row 1
[1592255923] error:   conflict_manager: error in the main loop: storage: insertion of metric 'cpu_total_EOT-bt-srvv4_tra▒a' of index 1436541 failed: Incorrect string value: '\xE7a' for column `centreon_storage`.`metrics`.`metric_name` at row 1
[1592255923] error:   conflict_manager: error in the main loop: storage: insertion of metric 'cpu_total_EOT-bt-srvv4_tra▒a' of index 1436541 failed: Incorrect string value: '\xE7a' for column `centreon_storage`.`metrics`.`metric_name` at row 1

centcore logs (if needed)

tail -f /var/log/centreon/centcore.log

Additional relevant information (e.g. frequency, ...)

samyjc commented 4 years ago

Hi,

with centreon-plugin-Virtualization-VMWare-daemon and centreon-plugin-Virtualization-Vmware2-Connector-Plugin, you are not allowed to use accented characters or cilles. It might be solved by some configuration in pm file or centreon-broker configuration file.

Hope this help avoid such trouble in future.

Regards Samy

bouda1 commented 4 years ago

The next centreon-engine will check plugins outputs and should be able to correct wrong encodings. Regards.