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

ACW not working #8681

Open dchicco-giga opened 4 years ago

dchicco-giga commented 4 years ago

Hello sorry for my english a few days ago my centreon started with a problem...

Every time that I want to put a service or host as acknowledge is not working

Rarely because before it was working without any problem...

Can anybody help me

Thanxs

Danny

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

[root@centreon-central ~]# rpm -qa | grep centreon
centreon-connector-18.10.0-2.el7.centos.x86_64
centreon-broker-cbd-18.10.2-1.el7.centos.x86_64
centreon-base-config-centreon-engine-18.10.12-3.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ldap-20200410-101650.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Poller-20200410-101650.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ntp-20200410-101650.el7.centos.noarch
centreon-plugin-Hardware-Storage-Hp-P2000-Xmlapi-20200410-101650.el7.centos.noarch
centreon-broker-storage-18.10.2-1.el7.centos.x86_64
centreon-common-18.10.12-3.el7.centos.noarch
centreon-widget-graph-monitoring-18.10.0-6.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Map4-Jmx-20200410-101650.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Central-20200410-101650.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Database-20200410-101650.el7.centos.noarch
centreon-widget-tactical-overview-18.10.1-1.el7.centos.noarch
centreon-broker-cbmod-18.10.2-1.el7.centos.x86_64
centreon-license-manager-18.10.3-1.el7.centos.noarch
centreon-poller-centreon-engine-18.10.12-3.el7.centos.noarch
centreon-engine-extcommands-18.10.0-4.el7.centos.x86_64
centreon-18.10.12-3.el7.centos.noarch
centreon-widget-live-top10-memory-usage-18.10.0-6.el7.centos.noarch
centreon-plugin-Applications-Databases-Mysql-20200410-101650.el7.centos.noarch
centreon-plugin-Hardware-Printers-Generic-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Applications-Protocol-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Network-Hp-Standard-Snmp-20200410-101650.el7.centos.noarch
centreon-pp-manager-18.10.5-1.el7.centos.noarch
centreon-widget-host-monitoring-18.10.3-1.el7.centos.noarch
centreon-plugin-Applications-Protocol-Dns-20200410-101650.el7.centos.noarch
centreon-plugin-Network-H3c-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ospf-20200410-101650.el7.centos.noarch
centreon-connector-perl-18.10.0-2.el7.centos.x86_64
centreon-broker-18.10.2-1.el7.centos.x86_64
centreon-broker-graphite-18.10.2-1.el7.centos.x86_64
centreon-license-manager-common-18.10.3-1.el7.centos.noarch
centreon-trap-18.10.12-3.el7.centos.noarch
centreon-engine-daemon-18.10.0-4.el7.centos.x86_64
centreon-database-18.10.12-3.el7.centos.noarch
centreon-clib-18.10.0-2.el7.centos.x86_64
centreon-widget-hostgroup-monitoring-18.10.0-6.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-18.10.0-6.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ftp-20200410-101650.el7.centos.noarch
centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp-20200410-101650.el7.centos.noarch
centreon-release-18.10-2.el7.centos.noarch
centreon-plugin-Applications-Protocol-X509-20200410-101650.el7.centos.noarch
centreon-plugin-Operatingsystems-Freebsd-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Operatingsystems-Linux-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Network-Zyxel-Snmp-20200410-101650.el7.centos.noarch
centreon-connector-ssh-18.10.0-2.el7.centos.x86_64
centreon-widget-service-monitoring-18.10.5-1.el7.centos.noarch
centreon-plugin-Applications-Protocol-Http-20200410-101650.el7.centos.noarch
centreon-broker-core-18.10.2-1.el7.centos.x86_64
centreon-perl-libs-18.10.12-3.el7.centos.noarch
centreon-widget-grid-map-18.10.0-6.el7.centos.noarch
centreon-plugin-Network-Huawei-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Network-Cisco-Standard-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Operatingsystems-Windows-Snmp-20200410-101650.el7.centos.noarch
centreon-widget-engine-status-18.10.1-1.el7.centos.noarch
centreon-web-18.10.12-3.el7.centos.noarch
centreon-engine-18.10.0-4.el7.centos.x86_64
centreon-widget-servicegroup-monitoring-18.10.0-6.el7.centos.noarch
centreon-plugin-Hardware-Storage-Quantum-Scalar-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Applications-Protocol-Bgp-Snmp-20200410-101650.el7.centos.noarch
centreon-plugin-Network-3com-Snmp-20200410-101650.el7.centos.noarch
centreon-auto-discovery-server-18.10.8-3.el7.centos.x86_64

For the deb based systems

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

$ dpkg -l | grep centreon

[root@centreon-central ~]# dpkg -l | grep centreon -bash: dpkg: command not found [root@centreon-central ~]#

Operating System

CentOS

[root@centreon-central ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) [root@centreon-central ~]#

Browser used

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-php71/log/php-fpm/centreon-error.log

[root@centreon-central ~]# tail -f /var/opt/rh/rh-php71/log/php-fpm/centreon-error.log
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
[04-May-2020 00:02:48 America/Argentina/Buenos_Aires] PHP Warning:  file_put_contents(/var/lib/centreon/centcore.cmd): failed to open stream: Permission denied in /usr/share/centreon/www/class/centreonExternalCommand.class.php on line 135
^C
[root@centreon-central ~]#
**centreon-engine logs (*if needed*)**

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

[root@centreon-central ~]# tail -f /var/log/centreon-engine/centengine.log [1588561808] [5423] Max concurrent service checks (600/600) has been reached. Nudging BTA1_HPE_5940_COR_A21_01:Status_Interface_Ten-GigabitEthernet1/1/16 by 7 seconds... [1588561808] [5423] Max concurrent service checks (600/600) has been reached. Nudging BUE1_3COM_2920_SRV_C48_01:Ping by 14 seconds... [1588561813] [5423] Max concurrent service checks (600/600) has been reached. Nudging BUE1_FIB_5516_PON_A01_01:Status_Interface_XFP 19/1 by 12 seconds... [1588561813] [5423] Max concurrent service checks (600/600) has been reached. Nudging BUE1_HP_1910_SRV_C48_01:Status_Interface_GigabitEthernet1/0/8 by 5 seconds... [1588561827] [5423] Max concurrent service checks (600/600) has been reached. Nudging ZRT1_HPE_5940_COR_A01_01:Status_Interface_Vlan-interface2903 by 7 seconds... [1588561827] [5423] Max concurrent service checks (600/600) has been reached. Nudging STF1_HUA_6330_COR_A03_01:Status_Interface_Eth-Trunk12 by 13 seconds... [1588561827] [5423] Max concurrent service checks (600/600) has been reached. Nudging POS1_3CO_4800_CLI_A18_01:Status_Interface_Vlan-interface2536 by 6 seconds... [1588561827] [5423] Max concurrent service checks (600/600) has been reached. Nudging ALC2_HUA_5320_CLI_CERRITO:Status_Interface_XGigabitEthernet0/0/2 by 7 seconds... [1588561828] [5423] Max concurrent service checks (600/600) has been reached. Nudging BUE1_3CO_2928_HOU_F01_01:Status_Interface_GigabitEthernet1/0/10 by 13 seconds... [1588561844] [5423] SERVICE ALERT: BUE1_HPE_6804_COR_A22_01;Status_Interface_Ten-GigabitEthernet1/2/0/1;WARNING;HARD;3;WARNING: Interface '##CORE## Peering Google a GC INT1' [ Ten-GigabitEthernet1/2/0/1 ] Traffic In : 8.83Gb/s (88.33%) [1588561877] [5423] Max concurrent service checks (600/600) has been reached. Nudging RES1_HPE_5950_COR_A07_01:Status_Interface_Twenty-FiveGigE1/0/34 by 12 seconds... [1588561877] [5423] Max concurrent service checks (600/600) has been reached. Nudging ZRT1_HPE_1920_CLI_A01_01:Status_Interface_GigabitEthernet1/0/22 by 12 seconds... [1588561877] [5423] Max concurrent service checks (600/600) has been reached. Nudging STM1_HPE_5500_COR_A01_01:Status_Interface_GigabitEthernet1/0/1 by 6 seconds... [1588561877] [5423] Max concurrent service checks (600/600) has been reached. Nudging BUE1_HPE_5900_COR_D01_01:Status_Interface_Vlan-interface476 by 13 seconds... [1588561878] [5423] Max concurrent service checks (600/600) has been reached. Nudging PAR1_CAS_C100_HFC_A05_01:Status_Interface_Vlan 477 by 6 seconds... [1588561878] [5423] Max concurrent service checks (600/600) has been reached. Nudging PAR1_CAS_C100_HFC_A05_01:Status_Interface_XGige 6/2 by 7 seconds... [1588561878] [5423] Max concurrent service checks (600/600) has been reached. Nudging COR1_3CO_4800_CLI_A21_01:Status_Interface_Bridge-Aggregation31 by 14 seconds... [1588561878] [5423] Max concurrent service checks (600/600) has been reached. Nudging PAR1_HPE_5900_COR_A07_01:Status_Interface_Ten-GigabitEthernet1/0/22 by 7 seconds... [1588561878] [5423] Max concurrent service checks (600/600) has been reached. Nudging ESQ1_HPE_4800_COR_A01_01:Status_Interface_GigabitEthernet1/0/17 by 8 seconds... [1588561882] [5423] Max concurrent service checks (600/600) has been reached. Nudging BUE1_HP_1910_SRV_C48_01:Status_Interface_GigabitEthernet1/0/6 by 11 seconds... [1588561882] [5423] Max concurrent service checks (600/600) has been reached. Nudging PAR1_HPE_5500_CLI_A07_01:Status_Interface_Vlan-interface3120 by 12 seconds... [1588561882] [5423] Max concurrent service checks (600/600) has been reached. Nudging ORO1_3CO_1910_COR_A01_01:Status_Interface_NULL0 by 14 seconds... [1588561882] [5423] Max concurrent service checks (600/600) has been reached. Nudging ORO1_3CO_1910_COR_A01_01:Status_Interface_Bridge-Aggregation9 by 9 seconds... [1588561882] [5423] Max concurrent service checks (600/600) has been reached. Nudging PAR1_HPE_5500_CLI_A07_01:Status_Interface_Vlan-interface520 by 8 seconds... [1588561883] [5423] Max concurrent service checks (600/600) has been reached. Nudging STM1_HPE_5500_COR_A01_01:Status_Interface_GigabitEthernet1/0/1 by 6 seconds... [1588561883] [5423] Max concurrent service checks (600/600) has been reached. Nudging PAR1_CAS_C100_HFC_A05_01:Status_Interface_Vlan 477 by 6 seconds... ^C [root@centreon-central ~]#

centreon-broker logs (if needed)

tail -f /var/log/centreon-broker/central-broker-master.log

no error - nothing

**centcore logs (*if needed*)**

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

no error - nothing

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

kduret commented 4 years ago

Hi @dchicco-giga ,

What are the rights on the centcore external command file ? ls -l /var/lib/centreon/centcore.cmd

dchicco-giga commented 4 years ago

ls -l /var/lib/centreon/centcore.cmd

[root@centreon-central ~]# ls -l /var/lib/centreon/centcore.cmd -rw-r--r-- 1 centreon centreon 259837 May 2 23:10 /var/lib/centreon/centcore.cmd [root@centreon-central ~]#

kduret commented 4 years ago

You need to add some rights on this file : chmod 664 /var/lib/centreon/centcore.cmd

Furthermore, it seems you've reached max service concurrent checks (600), you should increase the max threshold in Engine configuration (configuration > poller > engine configuration | optimization tab), or add a new poller (https://docs.centreon.com/current/en/installation/installation-of-a-poller/using-centreon-iso.html)

dchicco-giga commented 4 years ago

chmod 664 /var/lib/centreon/centcore.cmd

I have made that change but nothing happened since my problem start on my centreon dashboard started to apperead the following alarm

Centreon-central proc-centcore     CRITICAL 3d 23h 3d 23h 7m 21s 3/3 (H) CRITICAL: Number of current processes running: 0
      proc-centreontrapd     CRITICAL 3d 23h 3d 23h 7m 5s 3/3 (H) CRITICAL: Number of current processes running: 0

Best regards!

lpinsivy commented 4 years ago

Hi @dchicco-giga can you try to change the users rights:

chown -R centreon:centreon chmod 664 /var/lib/centreon

Then restart centcore process:

systemctl restart centcore

Moreover, please update your platform because Centreon 18.10.x is no more supported since the release of Centreon 20.04

Regards,