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

[Poller status] - Configuration not marked modified when change hostgroup/servicegroup with clapi #7350

Closed cmeschin closed 5 years ago

cmeschin commented 5 years ago

BUG REPORT INFORMATION

Prerequisites

Versions

Centreon Web version: 2.8.26 Centreon CLAPI version: 1.8.0 Centreon Engine version: 1.8.1 Centreon Broker version: 3.0.16

Operating System

OS: CentOS release 6.10 (Final)

Additional environment details (AWS, VirtualBox, physical, etc.):

Description

When servicegroup or hostgroup is modified by CLAPI, the poller configuration status isn't marked "changed"

Steps to Reproduce

  1. make a modification threw CLAPI on a hostgroup or servicegroup with a command like this $path_clapi/centreon -u $user_clapi -p $pass_clapi -o SG -a addservice -v "${servicegroup};${host},${service}"
  2. go to poller menu

Describe the received result

None poller marked "conf changed"

Describe the expected result

Poller should be marked "conf changed"

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

It's probably the same with API Rest but not tested.

lpinsivy commented 5 years ago

Hi @cmeschin. It is the same with web form, CLAPI or API.

If you didn't edit direct properties of hosts or services the column "changed" will always display "no". It is very difficult to calculate the indirect impacts (groups, templates, ...) and to display this on the poller listing page.

cmeschin commented 5 years ago

Hi @lpinsivy . Ok I understand. I try to get this information by another way. If I find a quickly method, I'll send back here.

Thanks.

lpinsivy commented 5 years ago

@cmeschin thank. I will close this ticket. Do not hesitate to reopen if you have a solution.

Regards,