+ fix kemp warn message with snmpv1

This commit is contained in:
garnier-quentin 2016-02-18 15:06:54 +01:00
parent 0f87eb849d
commit ff3c9bf02c
2 changed files with 6 additions and 2 deletions

View File

@ -196,7 +196,9 @@ sub manage_selection {
$self->{rs}->{$instance} = { display => $display_name, $self->{rs}->{$instance} = { display => $display_name,
status => $result->{rSstate}, status => $result->{rSstate},
rSInBytes => $result->{rSInBytes} * 8, rSOutBytes => $result->{rSOutBytes} * 8, rSActiveConns => $result->{rSActiveConns} }; rSInBytes => defined($result->{rSInBytes}) ? $result->{rSInBytes} * 8 : undef,
rSOutBytes => defined($result->{rSOutBytes}) ? $result->{rSOutBytes} * 8 : undef,
rSActiveConns => $result->{rSActiveConns} };
} }
if (scalar(keys %{$self->{rs}}) <= 0) { if (scalar(keys %{$self->{rs}}) <= 0) {

View File

@ -194,7 +194,9 @@ sub manage_selection {
$self->{vs}->{$instance} = { display => $result->{vSname}, $self->{vs}->{$instance} = { display => $result->{vSname},
status => $result->{vSstate}, status => $result->{vSstate},
vSInBytes => $result->{vSInBytes} * 8, vSOutBytes => $result->{vSOutBytes} * 8, vSActivConns => $result->{vSActivConns} }; vSInBytes => defined($result->{vSInBytes}) ? $result->{vSInBytes} * 8 : undef,
vSOutBytes => defined($result->{vSOutBytes}) ? $result->{vSOutBytes} * 8 : undef,
vSActivConns => $result->{vSActivConns} };
} }
if (scalar(keys %{$self->{vs}}) <= 0) { if (scalar(keys %{$self->{vs}}) <= 0) {