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
0624e6cfd8
commit
8d1225386a
|
@ -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…
Reference in New Issue