Skip to main content

Operating System

CentOS 7 3.10.0-1160.66.1.el7.x86_64
Installed with centreon-21.04-1.el7.x86_64.iso and upgraded to 22.04.

 

Browser used

  •  Google Chrome / Brave
  •  Firefox

Version: 102.0.5005.115 (Brave) and 101.0.1 (Firefox)

 

Description

When a service as been acknowledged in a CRITICAL status and goes back to an OK status with not over action, the acknowledged can't be removed with the service in OK status.

 

Steps to Reproduce

Please describe precisely the steps to reproduce the encountered issue.

  1. Have a service in CRITIAL status

  2. acknowledged it (the Notify, Sticky and Persistent checkbox don't matter)

  3. The service goes back to a OK status

  4. Try removing the acknowledgement.
    image

  5. The acknowledgement is still there
    image

Logs

PHP error logs

For version using PHP 7.2 or 7.3 on centOs 8 or PHP 8

tail -f /var/log/php-fpm/centreon-error.log
[21-Jun-2022 16:24:33 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/main.get.php on line 146
[21-Jun-2022 16:24:33 Europe/Paris] PHP Warning: Undefined array key 1 in /usr/share/centreon/www/main.get.php on line 147
[21-Jun-2022 16:24:33 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/main.get.php on line 149
[21-Jun-2022 16:24:33 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/main.get.php on line 151
[21-Jun-2022 16:24:42 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/main.get.php on line 146
[21-Jun-2022 16:24:42 Europe/Paris] PHP Warning: Undefined array key 1 in /usr/share/centreon/www/main.get.php on line 147
[21-Jun-2022 16:24:42 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/main.get.php on line 149
[21-Jun-2022 16:24:42 Europe/Paris] PHP Warning: Trying to access array offset on value of type bool in /usr/share/centreon/www/main.get.php on line 151

centreon gorgone logs for Centreon >= 20.4 (if needed)

tail -f /var/log/centreon-gorgone/gorgoned.log
[legacycmd] Handling command 'EXTERNALCMD', Target: '1', Parameters: '[1655821258] REMOVE_SVC_ACKNOWLEDGEMENT;srv;Disk-Global'
2022-06-21 16:21:00 - INFO - [engine] Processing external command '[1655821258] REMOVE_SVC_ACKNOWLEDGEMENT;srv;Disk-Global'

The most reveling piece of information I have found in that log file.


bump


Hi @BG_nn6  I am not able to reproduce this on 

centreon-web-22.04.0-2.el7.centos.noarch

There is a 22.04 available @ https://download.centreon.com/ to use instead of the 21.04 and then upgrade.

This is the current topology setup if you want to compare with yours:

https://github.com/centreon/centreon/blob/22.04.x/www/install/insertTopology.sql

 

🤞


Hi, 

I  am not in a situation where I can reinstall centreon from scratch.

I have tried to delete and reinject Topology.sql, but the issue is still there.

 

What else could I try ?

 

Thanks.


I just tried on the lastest OVA (centreon 22.04-el7) and the bug is present.

You can try by installing it(centreon-vbox-vm-22.04-1.el7.ova.zip) and do my step to reproduce.

 

I believe the issue on GitHub should be reopened.


I see what you mean, I can replicated now. Thank you for your time and patience, I will follow up. I need to talk to the team and let you know.

 

😁


Issue created 👍


Reply