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
575 stars 240 forks source link

Can't install grid-map widget #7649

Open wackou72 opened 5 years ago

wackou72 commented 5 years ago

BUG REPORT INFORMATION

Prerequisites

Versions

For the RPM based systems

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

rpm -qa | grep centreon
centreon-widget-live-top10-memory-usage-19.04.0-5.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Poller-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Map4-Jmx-20190412-141630.el7.centos.noarch
centreon-clib-19.04.0-1.el7.centos.x86_64
centreon-engine-19.04.1-9.el7.centos.x86_64
centreon-pp-manager-19.04.0-3.el7.centos.noarch
centreon-widget-service-monitoring-19.04.0-5.el7.centos.noarch
centreon-plugin-Applications-Protocol-Dns-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ftp-20190412-141630.el7.centos.noarch
centreon-broker-storage-19.04.0-2.el7.centos.x86_64
centreon-connector-perl-19.04.0-2.el7.centos.x86_64
centreon-19.04.2-7.el7.centos.noarch
centreon-widget-httploader-19.04.0-5.el7.centos.noarch
centreon-widget-grid-map-19.04.0-5.el7.centos.noarch
centreon-widget-servicegroup-monitoring-19.04.0-7.el7.centos.noarch
centreon-plugin-Applications-Databases-Mysql-20190412-141630.el7.centos.noarch
centreon-plugin-Operatingsystems-Windows-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Database-20190412-141630.el7.centos.noarch
centreon-plugin-Network-Cisco-Standard-Snmp-20190412-141630.el7.centos.noarch
centreon-broker-core-19.04.0-2.el7.centos.x86_64
centreon-trap-19.04.2-7.el7.centos.noarch
centreon-broker-cbd-19.04.0-2.el7.centos.x86_64
centreon-poller-centreon-engine-19.04.2-7.el7.centos.noarch
centreon-plugins-base-1.18-2.el7.centos.noarch
centreon-license-manager-common-19.04.0-1.el7.centos.noarch
centreon-base-config-centreon-engine-19.04.2-7.el7.centos.noarch
centreon-widget-hostgroup-monitoring-19.04.0-5.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-19.04.0-5.el7.centos.noarch
centreon-widget-host-monitoring-19.04.0-5.el7.centos.noarch
centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Protocol-Http-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Central-20190412-141630.el7.centos.noarch
centreon-plugin-Virtualization-VMWare-daemon-3.0.2-20190606142851.el7.centos.noarch
centreon-broker-19.04.0-2.el7.centos.x86_64
centreon-perl-libs-19.04.2-7.el7.centos.noarch
centreon-broker-cbmod-19.04.0-2.el7.centos.x86_64
centreon-connector-19.04.0-2.el7.centos.x86_64
centreon-database-19.04.2-7.el7.centos.noarch
centreon-auto-discovery-server-19.04.0-4.el7.centos.x86_64
centreon-widget-global-health-19.04.0-5.el7.centos.noarch
centreon-widget-graph-monitoring-19.04.0-5.el7.centos.noarch
centreon-plugin-Operatingsystems-Linux-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Virtualization-Vmware2-Connector-Plugin-20190412-141630.el7.centos.noarch
centreon-release-19.04-1.el7.centos.noarch
centreon-engine-daemon-19.04.1-9.el7.centos.x86_64
centreon-connector-ssh-19.04.0-2.el7.centos.x86_64
centreon-web-19.04.2-7.el7.centos.noarch
centreon-widget-engine-status-19.04.0-5.el7.centos.noarch
centreon-widget-tactical-overview-19.04.0-7.el7.centos.noarch
centreon-plugin-Hardware-Printers-Generic-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ldap-20190412-141630.el7.centos.noarch
centreon-common-19.04.2-7.el7.centos.noarch
centreon-engine-extcommands-19.04.1-9.el7.centos.x86_64
centreon-license-manager-19.04.0-1.el7.centos.noarch

Operating System

CentOS Linux release 7.6.1810 (Core)

Browser used

Version: --

Virtual VM (ESXi)

Description

I can't upgrade the grid-map widgets

Steps to Reproduce

Please describe precisely the steps to reproduce the encountered issue.

  1. I just upgrade to 19.04, and I upgraded all the plugins packs and the widgets
  2. On the grid-map widget, I can't install to 19.04.0, see image

Describe the received result

Plugin can't be installed

Describe the expected result

Plugin should install

Logs

PHP error logs

[24-Jun-2019 15:01:04 Europe/Paris] PHP Notice:  Undefined index: HTTP_ACCEPT_LANGUAGE in /usr/share/centreon/www/class/centreonUser.class.php on line 240

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

centcore logs (if needed)

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

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

PLUGIN

adr-mo commented 5 years ago

Hi @wackou72

Thanks for the feedback :100:

I could not reproduce your issue on

not-reproduced

versions

[root@stable-releases ~]# rpm -qa | grep -E "(grid-map|centreon-web)"
centreon-widget-grid-map-19.04.0-5.el7.centos.noarch
centreon-web-19.04.2-7.el7.centos.noarch

Could you please check the browser console to see if there is any JavaScript errors on it ?

Regards

wackou72 commented 5 years ago

rpm -qa | grep -E "(grid-map|centreon-web)" centreon-widget-grid-map-19.04.0-5.el7.centos.noarch centreon-web-19.04.2-7.el7.centos.noarch

Same version as you.

No error on the console, what's strange is that on /usr/share/centreon/www/widgets I've already a folder called grid-map

I remembed having such issue when upgrading from 3.4 to 18.10 or another update where the grid-map plugins can't be installed or upgraded ...

adr-mo commented 5 years ago

That is odd.

Maybe you could try to reinstall the widget

Regards,

wackou72 commented 5 years ago

How ? Because the widget installed is like a ghost and I don't know how to properly uninstall

adr-mo commented 5 years ago

Hi @wackou72,

Could you please check first that the widget is not installed at all

MariaDB [centreon]> SELECT * FROM widget_models where title = 'Grid-map';

If installed it should look like this

MariaDB [centreon]> SELECT * FROM widget_models where title = 'Grid-map'\G
*************************** 1. row ***************************
widget_model_id: 3
          title: Grid-map
    description: This grid map widget displays the status of services for a set of hosts. It is possible to select which services to display.
            url: ./widgets/grid-map/index.php
        version: 19.04.0
      directory: grid-map
         author: Centreon
          email: contact@centreon.com
        website: http://www.centreon.com
       keywords: centreon, widget, Grid-map
     screenshot: NULL
      thumbnail: ./widgets/Grid-map/resources/logo1.png
    autoRefresh: 10
1 row in set (0.00 sec)

Otherwise it is empty.

If you want to reinstall the widget you can execute

yum reinstall centreon-widget-grid-map

Regards

wackou72 commented 5 years ago

Hi @adr-mo I tried your command, and I got the same output as you. Plugin is installed.

When running yum reinstall centreon-widget-grid-map

It show that the package is installed and will be reinstalled.

I get back to the centreon webpage, and I have the same "error"

wackou72 commented 5 years ago

Hi @adr-mo , I have run the following command : yum remove centreon-widget-grid-map Widget is successfully removed from the web-ui, then I run the following command : yum install centreon-widget-grid-map Widget is installed, but on the web-ui, the widget is available to install but nothing (same issue)

zskarman commented 5 years ago

here is the solution: https://github.com/centreon/centreon/issues/7850

wackou72 commented 5 years ago

Doesn't seems the same error ?

zskarman commented 5 years ago

yes

boupjof commented 4 years ago

There is any update I ? have the same error on my Centreon

wackou72 commented 4 years ago

There is any update I ? have the same error on my Centreon

No, still the same error even on 19.10 ...

Maybe on 20.04 version ? Haven't updated yet on my side.

lpinsivy commented 4 years ago

On your server do you have /usr/share/centreon/www/widgets/Grid-map or /usr/share/centreon/www/widgets/grid-map?

wackou72 commented 4 years ago

I have /usr/share/centreon/www/widgets/grid-map

lgigil commented 3 years ago

@wackou72 I was experiencing this problem too and I solved. Since you have the folder name with lowercase, try to edit into centreon database on the widget_models table, the fields 'url' and 'directory' to ./widgets/grid-map/index.php and grid-map respectively. I only changed the leading G into lowercase. Then go to Administration->Extensions->Manager on web GUI and reinstall the widget.