forked from pool/monitoring-plugins-bonding
- fix last change for non-lacp interfaces
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-bonding?expand=0&rev=11
This commit is contained in:
parent
859a598b6f
commit
086233d4b5
@ -88,12 +88,16 @@ sub check_bond {
|
||||
}
|
||||
foreach (keys %{$data->{'slaves'}}) {
|
||||
my $result = $data->{'slaves'}->{$_}->{'mii'};
|
||||
$result = "churned" unless $data->{'slaves'}->{$_}->{'actor-churn'} eq 'none';
|
||||
$result = "churned" unless $data->{'slaves'}->{$_}->{'partner-churn'} eq 'none';
|
||||
$result = "churned" if $data->{'slaves'}->{$_}->{'actor-churn'}
|
||||
&& $data->{'slaves'}->{$_}->{'actor-churn'} ne 'none';
|
||||
$result = "churned" if $data->{'slaves'}->{$_}->{'partner-churn'}
|
||||
&& $data->{'slaves'}->{$_}->{'partner-churn'} ne 'none';
|
||||
$config_str.= " $_ (" . $result . ")";
|
||||
$error = 1 unless $data->{'slaves'}->{$_}->{'mii'} eq 'up';
|
||||
$error = 1 unless $data->{'slaves'}->{$_}->{'actor-churn'} eq 'none';
|
||||
$error = 1 unless $data->{'slaves'}->{$_}->{'partner-churn'} eq 'none';
|
||||
$error = 1 if $data->{'slaves'}->{$_}->{'actor-churn'}
|
||||
&& $data->{'slaves'}->{$_}->{'actor-churn'} ne 'none';
|
||||
$error = 1 if $data->{'slaves'}->{$_}->{'partner-churn'}
|
||||
&& $data->{'slaves'}->{$_}->{'partner-churn'} ne 'none';
|
||||
$error = 2 if ($data->{'status'} ne 'up');
|
||||
}
|
||||
return $error, $config_str;
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 26 01:12:10 CEST 2018 - ro@suse.de
|
||||
|
||||
- fix last change for non-lacp interfaces
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 12 13:04:59 CEST 2018 - ro@suse.de
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user