mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
parent
f936cb9f9a
commit
c2d8d00944
@ -44,6 +44,8 @@ sub check {
|
|||||||
# </NIC>
|
# </NIC>
|
||||||
foreach my $result (@{$self->{xml_result}->{GET_EMBEDDED_HEALTH_DATA}->{NIC_INFORMATION}->{NIC}}) {
|
foreach my $result (@{$self->{xml_result}->{GET_EMBEDDED_HEALTH_DATA}->{NIC_INFORMATION}->{NIC}}) {
|
||||||
my $instance = $result->{NETWORK_PORT}->{VALUE};
|
my $instance = $result->{NETWORK_PORT}->{VALUE};
|
||||||
|
$instance = $result->{PORT_DESCRIPTION}->{VALUE} . '.' . $instance
|
||||||
|
if (defined($result->{PORT_DESCRIPTION}->{VALUE}));
|
||||||
|
|
||||||
next if ($self->check_filter(section => 'nic', instance => $instance));
|
next if ($self->check_filter(section => 'nic', instance => $instance));
|
||||||
next if ($result->{STATUS}->{VALUE} =~ /not installed|n\/a|not present|not applicable/i &&
|
next if ($result->{STATUS}->{VALUE} =~ /not installed|n\/a|not present|not applicable/i &&
|
||||||
@ -62,4 +64,4 @@ sub check {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user