Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(remote-server): export properly trap matching and hostgroups #8054

Merged
merged 2 commits into from
Nov 5, 2019

Conversation

kduret
Copy link
Contributor

@kduret kduret commented Oct 25, 2019

Description

Trap matching cannot be exported on remote server because of a PHP fatal error in centcore logs :
2019-10-25 11:13:24 - DEBUG - cmd: /usr/share/centreon//bin/centreon -u <admin_user> -p <admin_md5_password> -w -o CentreonWorker -a processQueue PHP Fatal error: Uncaught Error: Class 'ConfigGenerateRemote\Relations\serviceCategory' not found in /usr/share/centreon/www/class/config-generate-remote/Relations/TrapsMatching.php:109 Stack trace: #0 /usr/share/centreon/www/class/config-generate-remote/Relations/TrapsMatching.php(123): ConfigGenerateRemote\Relations\TrapsMatching->generateObject(607, Array) #1 /usr/share/centreon/www/class/config-generate-remote/Trap.php(156): ConfigGenerateRemote\Relations\TrapsMatching->getTrapMatchingByTrapId(607) #2 /usr/share/centreon/www/class/config-generate-remote/Trap.php(172): ConfigGenerateRemote\Trap->generateObject(2694, Array, Array) #3 /usr/share/centreon/www/class/config-generate-remote/Abstracts/AbstractService.php(160): ConfigGenerateRemote\Trap->getTrapsByServiceId(2694) #4 /usr/share/centreon/www/class/config-generate-remote/Service.php(226): ConfigGenerateRemote\Abstracts\AbstractService->getTraps(Array) #5 /usr/share/centreon/www/class/config-generate-remote/Host.php(91): ConfigGenerateRemote\Service->generateFromServi in /usr/share/centreon/www/class/config-generate-remote/Relations/TrapsMatching.php on line 109

there is the same issue for host which are linked to disabled hostgroups

Fixes MON-4436

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software
  • Updating documentation (missing information, typo...)

Target serie

  • 2.8.x
  • 18.10.x
  • 19.04.x
  • 19.10.x (master)

@kduret kduret changed the title fix(remote-server): export properly trap matching fix(remote-server): export properly trap matching and hostgroups Oct 28, 2019
@kduret kduret merged commit 972da7c into master Nov 5, 2019
@kduret kduret deleted the fix-remote-server-traps branch November 5, 2019 15:03
kduret added a commit that referenced this pull request Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants