This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
enh(gorgone): Added API to communicate with the Gorgone server #8294
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/Centreon/Infrastructure/Gorgone/GorgoneCommandRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneCommandRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneCommandRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneCommandRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneCommandRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneCommandRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneCommandRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneResponseRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneResponseRepositoryAPI.php
Outdated
Show resolved
Hide resolved
src/Centreon/Infrastructure/Gorgone/GorgoneResponseRepositoryAPI.php
Outdated
Show resolved
Hide resolved
sc979
approved these changes
Jan 29, 2020
loiclau
approved these changes
Jan 29, 2020
sc979
added a commit
that referenced
this pull request
Mar 18, 2020
* enh(core): generate centreon gorgone configuration file (#8160) * enh(core): add gorgone configuration file generation * fix: folder paths * fix(core): naming of file and field type * enh(core): update configuration file to take in account last modif * fix(core): correct path to private key * enh(core): add nodes module * enh(core): store stats in cache dir * enh(core): enable broker stats collection * enh(poller) Update poller form to manage gorgone (#8184) * enh(gorgone) Update config form to manage gorgone options (#8197) * enh(chore) replace centcore by gorgone (#8172) * remove centcore perl script (#8209) * fix(UI): do not display gorgone options on central's form (#8206) * fix(UI): do not display gorgone options on central * remove duplicated code (#8215) * enh(admin): adapt broker stats page to new folder tree (#8216) * enh(core): update script to manage gorgone configuration file (#8229) * enh: exception management * enh(update): generate gorgone conf file on update * fix(translation): avoid empty gettext translation * enh(core): Add a yaml configuration loader (#8270) * MON-4737 enh(core): split gorgone configuration in different files (#8276) * enh(core): adapt upgrade script to latest modifications (#8284) * adapt update script * enh: add more check brefore trying to create the conf files * fix: correct path in the template * enh(core): update gorgone configuration files (#8293) * update configuration location * enh(gorgone): Added API to communicate with the Gorgone server (#8294) * enh(install): fix default keys pathes (#8302) * fix db name configuration template * replace remote data folder * fix rest api test * enh(UI): Add nowrap style to badge class - from aladdinchan (#8314) * fix(ui): Add hash:8 suffix to font files to avoid asset conflicts and optimize Webpack config (#8305) * Mon 4640 remove deprecated engine fields (#8233) * fix(CI): add new tests to clapi diff * fix(core): source install (#8396) * enh(core): add gorgone user and copy ssh keys * fix(api): fix options retrieval issue (#8412) * fix(core): manage the gorgone configuration files (#8400) * fix(core): duplicate SSH key on source upgrade (#8421) Co-authored-by: loiclau <loic.lau@gmail.com> Co-authored-by: Colin Gagnaire <cgagnaire@centreon.com> Co-authored-by: Laurent Calvet <lcalvet@centreon.com> Co-authored-by: Bruno d'Auria <bdauria@centreon.com> Co-authored-by: Matthieu Kermagoret <mkermagoret@centreon.com> Co-authored-by: Laurent Pinsivy <lpinsivy@centreon.com> Co-authored-by: Kevin Duret <duret.kevin@gmail.com> Co-authored-by: Laurent Calvet <laurent@callapa.com> Co-authored-by: Kevin Duret <kduret@centreon.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added API to communicate with the Gorgone server.
Updated the Symfony Kernel which can be called from the old code.
Type of change
Target serie
How this pull request can be tested ?
Requirements:
Gorgon connection details must be stored in the database (table options) with the following fields filled in: gorgone_api_address, gorgone_api_port, gorgone_api_username, gorgone_api_password, gorgone_api_ssl, gorgone_api_allow_self_signed, gorgone_cmd_timeout
API to be tested to retrieve the command token:
curl --location --request GET 'http://my_centreon/centreon/api/latest/gorgone/pollers/id of the poller/commands/thumbprint'
--header 'Content-Type: application/json'
--header 'X-AUTH-TOKEN: my_api_authentication_token'
API to be tested to retrieve the response:
curl --location --request GET 'http://my_centreon/centreon/api/latest/gorgone/pollers/id of the poller/responses/token_of_the_command'
--header 'Content-Type: application/json'
--header 'X-AUTH-TOKEN: my_api_authentication_token'
Checklist
Community contributors & Centreon team
Centreon team only