fix quantum dxi
This commit is contained in:
parent
51c16b4419
commit
05561b8da9
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue