fix quantum dxi

This commit is contained in:
Colin Gagnaire 2018-12-20 12:05:39 +01:00
parent 51c16b4419
commit 05561b8da9
12 changed files with 31 additions and 11 deletions

View File

@ -193,7 +193,7 @@ sub check_options {
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;

View File

@ -242,7 +242,7 @@ sub check_options {
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;

View File

@ -119,7 +119,7 @@ sub new {
sub change_macros {
my ($self, %options) = @_;
foreach ('warning_status', 'critical_status') {
foreach (('warning_status', 'critical_status')) {
if (defined($self->{option_results}->{$_})) {
$self->{option_results}->{$_} =~ s/%\{(.*?)\}/\$self->{result_values}->{$1}/g;
}
@ -129,6 +129,10 @@ sub change_macros {
sub check_options {
my ($self, %options) = @_;
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;
$self->change_macros();

View File

@ -128,6 +128,10 @@ sub change_macros {
sub check_options {
my ($self, %options) = @_;
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;
$self->change_macros();

View File

@ -152,7 +152,7 @@ sub check_options {
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;

View File

@ -119,7 +119,7 @@ sub new {
sub change_macros {
my ($self, %options) = @_;
foreach ('warning_status', 'critical_status') {
foreach (('warning_status', 'critical_status')) {
if (defined($self->{option_results}->{$_})) {
$self->{option_results}->{$_} =~ s/%\{(.*?)\}/\$self->{result_values}->{$1}/g;
}
@ -129,6 +129,10 @@ sub change_macros {
sub check_options {
my ($self, %options) = @_;
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;
$self->change_macros();

View File

@ -202,7 +202,7 @@ sub check_options {
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;

View File

@ -217,7 +217,7 @@ sub check_options {
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;

View File

@ -118,7 +118,7 @@ sub new {
sub change_macros {
my ($self, %options) = @_;
foreach ('warning_status', 'critical_status') {
foreach (('warning_status', 'critical_status')) {
if (defined($self->{option_results}->{$_})) {
$self->{option_results}->{$_} =~ s/%\{(.*?)\}/\$self->{result_values}->{$1}/g;
}
@ -128,6 +128,10 @@ sub change_macros {
sub check_options {
my ($self, %options) = @_;
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;
$self->change_macros();

View File

@ -120,7 +120,7 @@ sub new {
sub change_macros {
my ($self, %options) = @_;
foreach ('warning_status', 'critical_status') {
foreach (('warning_status', 'critical_status')) {
if (defined($self->{option_results}->{$_})) {
$self->{option_results}->{$_} =~ s/%\{(.*?)\}/\$self->{result_values}->{$1}/g;
}
@ -130,6 +130,10 @@ sub change_macros {
sub check_options {
my ($self, %options) = @_;
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;
$self->change_macros();

View File

@ -136,7 +136,7 @@ sub check_options {
$self->SUPER::check_options(%options);
if (defined($self->{option_results}->{hostname}) && $self->{option_results}->{hostname} ne '') {
$self->{option_results}->{remote} = 1;
$self->{option_results}->{remote} = 1;
}
$instance_mode = $self;

View File

@ -33,8 +33,8 @@ sub new {
%{$self->{modes}} = (
'compaction' => 'storage::quantum::dxi::ssh::mode::compaction',
'disk-usage' => 'storage::quantum::dxi::ssh::mode::diskusage',
'hostbus-adapter-status' => 'storage::quantum::dxi::ssh::mode::hostbusadapterstatus',
'health' => 'storage::quantum::dxi::ssh::mode::health',
'hostbus-adapter-status' => 'storage::quantum::dxi::ssh::mode::hostbusadapterstatus',
'memory' => 'storage::quantum::dxi::ssh::mode::memory',
'network' => 'storage::quantum::dxi::ssh::mode::network',
'reclamation' => 'storage::quantum::dxi::ssh::mode::reclamation',