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

Remove RTDOWNTIME from CLAPI remove Host only without the linked services #8971

Open talcoh2x opened 4 years ago

talcoh2x commented 4 years ago

Hi, I'm using clapi to set and remove downtimes. add works fine but when I delete the downtimes its remove the host only without the linked services. what I do wrong?

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 | egrep -v "(plugin|pack)" | sort

For the deb based systems

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

$ dpkg -l | grep centreon

Operating System

CentOS, Debian ...

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-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

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

tail -f /var/log/centreon-gorgone/gorgoned.log

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

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

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

lpinsivy commented 4 years ago

Hi @talcoh2x

When you create a downtime for an host with the option to apply on each services, this will create different downtime IDs for the host and for all services. So you need to get all the IDs and cancel one by one.

Regards,