Plugin(notification::microsoft::office365::teams): Modify the URI build #5388
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.
Refs: MON-155920
Centreon team (internal PR)
Description
Modify how the URI is built to avoid setting '&' in macros (they are removed by Centreon Engine). Added a new option,
--teams-workflow-params
, to set the params.Example:
perl ~/centreon-plugins/src/centreon_plugins.pl --plugin=notification::microsoft::office365::teams::plugin --mode=alert --custommode=workflowapi --teams-workflow='https://workflow.url:443/workflows/1045fa0c922a4b3780bd30244ed8395b/triggers/manual/paths/invoke' --notification-type='PROBLEM' --host-name='Test' --service-description='Deployment' --service-state='WARNING' --service-output='WARNING: output' --date='13-01-2024 17:00:00' --action-links --centreon-url='localhost' --extra-info='' --teams-workflow-params='param1' --teams-workflow-params='param2' --teams-workflow-params='param3'
Fixes # (issue)
Fix MON-155920
Type of change