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

[API] - Logs - Add services #6490

Open jben94 opened 6 years ago

jben94 commented 6 years ago

BUG REPORT INFORMATION

Centreon Web version: 2.8.21

Centreon Engine version: 1.8.1

Centreon Broker version: 3.0.14

OS: RH 6.9

Steps to reproduce the issue:

  1. Add a service from API
  2. Go to the page : Administration > Logs
  3. You seen not your changes

Describe the results you received: No logs about your changes

Describe the results you expected: logs about your changes

In the file: www/class/centreon-clapi/centreonService.class.php In the function : add Here change :

// $serviceId = parent::add();
$serviceId = $this->object->insert($this->params);
$this->params['service_hPars'] = $hostId;
$this->addAuditLog(
                'a',
                $serviceId,
                $this->params['service_description'],
                $this->params,
                'SERVICE'
            );
lpinsivy commented 6 years ago

@jben94 can you make a PR for this?

adr-mo commented 5 years ago

Hi @jben94,

This issue has been confirmed.

It will be fixed in 18.10.x and 19.04.x

Regards,

jben94 commented 5 years ago

Ok, thanks you ;)