Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctor 1218 plugin storage purestorage #5403

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

sfarouq-ext
Copy link
Contributor

@sfarouq-ext sfarouq-ext commented Jan 24, 2025

#CTOR-1218

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Checklist

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • I have provide data or shown output displaying the result of this code in the plugin area concerned.

@sfarouq-ext sfarouq-ext force-pushed the CTOR-1218-plugin-storage-purestorage branch from 04cbd6b to 6885521 Compare January 31, 2025 14:31
@@ -98,7 +98,9 @@ sub manage_selection {

my $last_time;
if (defined($self->{option_results}->{memory})) {
$self->{statefile_cache}->read(statefile => 'purestorage_' . $self->{mode} . '_' . $options{custom}->get_connection_infos());
#use Data::Dumper;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this commented code or add it to debug mode of the plugin


Examples: tc extra_options expected_result --
... 1 --filter-category='array' CRITICAL: 2 problem(s) detected | 'alerts.detected.count'=2;;;0;
... 2 --warning-status='\\\%{state} = "warning"' CRITICAL: 2 problem(s) detected | 'alerts.detected.count'=2;;;0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You change the warning condition in the option, but the plugin output critical status, so you are not checking that the warning option work with this.
Can you change the critical status too in this test so the plugin en in warning ?
It will allows to be sure the plugin can output warning if there is a matching condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants