1
0

- 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:
Ruediger Oertel 2018-07-25 23:13:39 +00:00 committed by Git OBS Bridge
parent 859a598b6f
commit 086233d4b5
2 changed files with 13 additions and 4 deletions

View File

@ -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;

View File

@ -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