From 8d1225386a032048e460e034549c05f3800499e1 Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Tue, 2 Nov 2010 12:22:55 +0000 Subject: [PATCH] fix #1849 git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@11006 6bcd3966-0018-0410-8128-fd23d134de7e --- src/check_centreon_snmp_traffic | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/check_centreon_snmp_traffic b/src/check_centreon_snmp_traffic index 7b3c59e8c..94815b836 100644 --- a/src/check_centreon_snmp_traffic +++ b/src/check_centreon_snmp_traffic @@ -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]; } }