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.
The modifications aim to integrate support expiration information into the existing script and allow for monitoring and alerting based on support expiration thresholds Added a New Key for Support Expiration Time:
Added a New Key for Support Expiration Time:
A new key support_expiration_time has been added to the license information in the manage_selection function.
The corresponding PowerShell command Get-VBRInstalledLicense is expected to provide the value for this key, and it represents the expiration time for support.
Custom Output for Support Expiration:
Custom output and threshold functions (custom_support_expires_perfdata and custom_support_expires_threshold) have been added to handle the display of the support expiration time.
Display Support Expiration in Output:
The license information displayed in the output now includes the support expiration time along with other details.
Updated Comments:
Comments have been added to the script to provide explanations for each block of code, particularly focusing on the new modifications related to support expiration.
Thresholds for Support Expiration:
New threshold options (--warning-expire-support and --critical-expire-support) have been suggested to set alerting conditions based on the support expiration time.
Description
PLEASE MAKE SURE THAT THE BRANCH PR INCLUDES JIRA TICKET ID (for centreon-internal)
Please include a short resume of the changes and what is the purpose of PR. Any relevant information should be added to help:
Fixes # (issue)
Type of change
Target serie
How this pull request can be tested ?
Please describe the procedure to verify that the goal of the PR is matched. Provide clear instructions so that it can be correctly tested.
Any relevant details of the configuration to perform the test should be added.
Checklist
Community contributors & Centreon team