mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
fix #1849
git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@11006 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
ae57538b80
commit
80e87c7149
@ -257,8 +257,8 @@ if ($mustCreateFile) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#getting interface using its name instead of its oid index
|
||||
################################################################
|
||||
# Getting interface using its name instead of its oid index
|
||||
if ($opt_n) {
|
||||
if ($opt_r){
|
||||
if (!-e $cacheFile) {
|
||||
@ -290,7 +290,8 @@ if ($opt_n) {
|
||||
if ($countLine) {
|
||||
my @resLine = split(/\;/, $row);
|
||||
$resLine[1] =~ s/\x00//g;
|
||||
if ($resLine[1] =~ $opt_i) {
|
||||
$resLine[1] =~ s/\n//g;
|
||||
if ($resLine[1] eq $opt_i) {
|
||||
$interface = $resLine[0];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user