mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 00:24:46 +02:00
+ Fix infiniband mode usage
This commit is contained in:
parent
ba16938dcc
commit
5e1c414c0c
@ -266,13 +266,13 @@ sub prefix_ibgw_output {
|
|||||||
sub skip_empty_ib {
|
sub skip_empty_ib {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
scalar(keys %{$self->{ib}}) > 1 ? return(0) : return(1);
|
scalar(keys %{$self->{ib}}) > 0 ? return(0) : return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub skip_empty_ibgw {
|
sub skip_empty_ibgw {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
scalar(keys %{$self->{ibgw}}) > 1 ? return(0) : return(1);
|
scalar(keys %{$self->{ibgw}}) > 0 ? return(0) : return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
my %map_link_state = (1 => 'down', 2 => 'init', 3 => 'armed', 4 => 'active', 5 => 'other');
|
my %map_link_state = (1 => 'down', 2 => 'init', 3 => 'armed', 4 => 'active', 5 => 'other');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user