mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
+ Fix interface name for redhat7
This commit is contained in:
parent
e1165820a4
commit
01b54ca013
@ -69,6 +69,7 @@ sub manage_selection {
|
|||||||
command_options => $self->{option_results}->{command_options});
|
command_options => $self->{option_results}->{command_options});
|
||||||
while ($stdout =~ /^(\S+)(.*?)(\n\n|\n$)/msg) {
|
while ($stdout =~ /^(\S+)(.*?)(\n\n|\n$)/msg) {
|
||||||
my ($interface_name, $values) = ($1, $2);
|
my ($interface_name, $values) = ($1, $2);
|
||||||
|
$interface_name =~ s/:$//;
|
||||||
my $states = '';
|
my $states = '';
|
||||||
$states .= 'R' if ($values =~ /RUNNING/ms);
|
$states .= 'R' if ($values =~ /RUNNING/ms);
|
||||||
$states .= 'U' if ($values =~ /UP/ms);
|
$states .= 'U' if ($values =~ /UP/ms);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user