centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

Bug with accented chars #9090

Open Cool34000 opened 4 years ago

Cool34000 commented 4 years ago

Versions

[root@localhost ~]# rpm -qa | grep centreon | egrep -v "(plugin|pack)" | sort
centreon-19.10.15-2.el7.centos.noarch
centreon-auto-discovery-server-19.10.4-1.el7.centos.noarch
centreon-base-config-centreon-engine-19.10.15-2.el7.centos.noarch
centreon-broker-19.10.5-1.el7.centos.x86_64
centreon-broker-cbd-19.10.5-1.el7.centos.x86_64
centreon-broker-cbmod-19.10.5-1.el7.centos.x86_64
centreon-broker-core-19.10.5-1.el7.centos.x86_64
centreon-broker-storage-19.10.5-1.el7.centos.x86_64
centreon-clib-19.10.0-6.el7.centos.x86_64
centreon-common-19.10.15-2.el7.centos.noarch
centreon-connector-19.10.1-1.el7.centos.x86_64
centreon-connector-perl-19.10.1-1.el7.centos.x86_64
centreon-connector-ssh-19.10.1-1.el7.centos.x86_64
centreon-database-19.10.15-2.el7.centos.noarch
centreon-engine-19.10.15-2.el7.centos.x86_64
centreon-engine-daemon-19.10.15-2.el7.centos.x86_64
centreon-engine-extcommands-19.10.15-2.el7.centos.x86_64
centreon-license-manager-19.10.1-3.el7.centos.noarch
centreon-license-manager-common-19.10.1-3.el7.centos.noarch
centreon-perl-libs-19.10.15-2.el7.centos.noarch
centreon-poller-centreon-engine-19.10.15-2.el7.centos.noarch
centreon-pp-manager-19.10.1-3.el7.centos.noarch
centreon-release-19.10-1.el7.centos.noarch
centreon-trap-19.10.15-2.el7.centos.noarch
centreon-web-19.10.15-2.el7.centos.noarch
centreon-widget-engine-status-19.10.2-1.el7.centos.noarch
centreon-widget-global-health-19.10.1-1.el7.centos.noarch
centreon-widget-graph-monitoring-19.10.2-1.el7.centos.noarch
centreon-widget-grid-map-19.10.1-1.el7.centos.noarch
centreon-widget-hostgroup-monitoring-19.10.1-1.el7.centos.noarch
centreon-widget-host-monitoring-19.10.6-6.el7.centos.noarch
centreon-widget-httploader-19.10.1-1.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-19.10.1-1.el7.centos.noarch
centreon-widget-live-top10-memory-usage-19.10.1-1.el7.centos.noarch
centreon-widget-servicegroup-monitoring-19.10.1-1.el7.centos.noarch
centreon-widget-service-monitoring-19.10.6-6.el7.centos.noarch
centreon-widget-tactical-overview-19.10.1-1.el7.centos.noarch

Operating System

CentOS on a VMWare ESX 5.5 server

Browser used

Description

You can't acknoledge a service when there are accented chars in the hostname image

Steps to Reproduce

Create a new host, use accented chars in the name (for example 'Collège_XXX') Wait for an alert on a service of this host Try to acknoledge the alarm: it doesn't mark it as acknoledged

Logs

PHP error logs

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

centreon-engine logs (if needed)

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

centcore logs for Centreon <= 19.10.x (if needed)

tail -f /var/log/centreon/centcore.log
2020-10-07 17:25:15 - ERROR - The IP address of the poller  is incorrect:
2020-10-07 17:25:15 - ERROR - Ip address not defined for poller 0

It seems to log those 2 lines each time I try to acknoledge a service.

Cool34000 commented 4 years ago

Hi,

It seems there is also the same bug if the name contains a "#" character...

lpinsivy commented 4 years ago

Hi @Cool34000 , do you hare a distributed architecture? Can you send us var/log/centreon-engine/centengine.log logs file on the poller which monitor your resource Collège_XXX?

Can you also enable the developer mode of Firefox and check is there is no error when you acknowledge your Collège_XXX resource?

Regards

Cool34000 commented 4 years ago

Hi,

Yes, I'm using a distributed architecture Here's /var/log/centreon-engine/centengine.log of the distant poller:

[1602467041] [21323] Need reload. [1602467041] [21323] Reloading... [1602467041] [21323] Starting to reload configuration. [1602467041] [21323] Reading main configuration file '/etc/centreon-engine/centengine.cfg'. [1602467041] [21323] Processing object config file '/etc/centreon-engine/hostTemplates.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/hosts.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/serviceTemplates.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/services.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/commands.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/contactgroups.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/contacts.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/hostgroups.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/servicegroups.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/timeperiods.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/escalations.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/dependencies.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/connectors.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/meta_commands.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/meta_timeperiod.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/meta_host.cfg' [1602467041] [21323] Processing object config file '/etc/centreon-engine/meta_services.cfg' [1602467041] [21323] Reading resource file '/etc/centreon-engine/resource.cfg' [1602467041] [21323] Configuration reloaded, main loop continuing. [1602467041] [21323] Reload configuration finished. [1602468194] [21323] SERVICE ALERT: Collège_XXXXX_SRV-AD-PEDAGO;KSC Deployment;UNKNOWN;HARD;3;UNKNOWN: SNMP GET Request : Timeout [1602468494] [21323] SERVICE ALERT: Collège_XXXXX_SRV-AD-PEDAGO;KSC Deployment;CRITICAL;HARD;3;CRITICAL: Deployment status is 'Critical' - 1 failed remote installation(s) - 1 host(s) with expired licence [serial: 14B4-000451-4E97779E] [1602481304] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Ping;OK;HARD;1;OK - 10.0.0.3 rta 10,870ms lost 0% [1602481314] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;CPU;UNKNOWN;HARD;3;UNKNOWN: SNMP Table Request : Timeout [1602481334] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Load;UNKNOWN;HARD;1;UNKNOWN: SNMP GET Request : Timeout [1602481344] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Traffic;UNKNOWN;HARD;1;UNKNOWN: SNMP GET Request : Timeout [1602481344] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Memory;UNKNOWN;HARD;1;UNKNOWN: SNMP GET Request : Timeout [1602481604] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;CPU;CRITICAL;HARD;3;CRITICAL: CPU '0' usage : 100.00 % - CPU '1' usage : 100.00 % - CPU '2' usage : 100.00 % - CPU '3' usage : 100.00 % [1602481634] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Traffic;OK;HARD;1;OK: All interfaces are ok [1602481634] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Memory;OK;HARD;1;OK: Ram Total: 1.94 GB Used (-buffers/cache): 348.07 MB (17.52%) Free: 1.60 GB (82.48%), Buffer: 29.03 MB, Cached: 1.37 GB, Shared: 6.51 MB [1602481634] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Load;OK;HARD;1;OK: Load average: 16.99, 13.07, 6.75 [1602481664] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Ping;CRITICAL;HARD;2;CRITICAL - 10.0.0.3: rta nan, lost 100% [1602481914] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;CPU;UNKNOWN;HARD;3;UNKNOWN: SNMP Table Request : Timeout [1602481964] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Ping;WARNING;HARD;2;WARNING - 10.0.0.3 lost 20% >= 20% [1602481994] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Load;UNKNOWN;HARD;2;UNKNOWN: SNMP GET Request : Timeout [1602482104] [21323] HOST ALERT: Collège_XXXXX_Synology_RS2416+;DOWN;HARD;3;CRITICAL - 10.0.0.3: rta nan, lost 100% [1602482204] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;CPU;CRITICAL;HARD;3;CRITICAL: CPU '0' usage : 100.00 % - CPU '1' usage : 100.00 % - CPU '2' usage : 92.00 % - CPU '3' usage : 100.00 % [1602482244] [21323] HOST ALERT: Collège_XXXXX_Synology_RS2416+;UP;HARD;1;OK - 10.0.0.3 rta 10,361ms lost 0% [1602482264] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Ping;OK;HARD;1;OK - 10.0.0.3 rta 0,128ms lost 0% [1602482294] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Load;OK;HARD;1;OK: Load average: 18.52, 20.98, 14.10 [1602482504] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Temp;OK;HARD;1;OK: system temperature: 43 C [1602482504] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Storage;OK;HARD;1;OK: All storages are ok [1602482514] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;CPU;UNKNOWN;HARD;3;UNKNOWN: SNMP Table Request : Timeout [1602482544] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Memory;UNKNOWN;HARD;1;UNKNOWN: SNMP GET Request : Timeout [1602482804] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;CPU;OK;HARD;1;OK: 4 CPU(s) average usage is 1.00 % [1602482834] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Memory;OK;HARD;1;OK: Ram Total: 1.94 GB Used (-buffers/cache): 247.33 MB (12.45%) Free: 1.70 GB (87.55%), Buffer: 37.86 MB, Cached: 756.98 MB, Shared: 4.46 MB [1602482954] [21323] SERVICE ALERT: Collège_XXXXX_Synology_RS2416+;Load;OK;HARD;1;OK: Load average: 0.04, 4.10, 8.66 [1602485504] [21323] SERVICE ALERT: Collège_XXXXX_SRV-AD-PEDAGO;KSC Full Scan;CRITICAL;HARD;3;CRITICAL: Full scan status is 'Critical' - 12 hosts(s) has not been scanned lately [1602487914] [21323] SERVICE ALERT: Collège_XXXXX_SRV-RDS2;Disk-Global;OK;HARD;1;OK: Storage 'C:' Usage Total: 109.66 GB Used: 73.28 GB (66.82%) Free: 36.38 GB (33.18%) [1602489714] [21323] SERVICE NOTIFICATION: UserYYYYY;Collège_XXXXX_SRV-RDS2;Disk-Global;RECOVERY (OK);service-notify-by-email;OK: Storage 'C:' Usage Total: 109.66 GB Used: 73.28 GB (66.83%) Free: 36.38 GB (33.17%) [1602501104] [21323] SERVICE ALERT: Collège_XXXXX_SRV-AD-PEDAGO;KSC Full Scan;OK;HARD;1;OK: Full scan status is 'OK' - 0 hosts(s) has not been scanned lately [1602501524] [21323] SERVICE ALERT: Collège_XXXXX_SRV-AD-PEDAGO;KSC Full Scan;CRITICAL;HARD;3;CRITICAL: Full scan status is 'Critical' - 1 hosts(s) has not been scanned lately [1602503624] [21323] SERVICE ALERT: Collège_XXXXX_SRV-AD-PEDAGO;KSC Full Scan;OK;HARD;1;OK: Full scan status is 'OK' - 0 hosts(s) has not been scanned lately [1602504044] [21323] SERVICE ALERT: Collège_XXXXX_SRV-AD-PEDAGO;KSC Full Scan;CRITICAL;HARD;3;CRITICAL: Full scan status is 'Critical' - 1 hosts(s) has not been scanned lately

I've enabled Dev mode in Firefox, but I don't know where to look... I've looked into debug and console tabs: no errors