From 5cd7c6e78d8c93043be9c5417f36aa5963614972 Mon Sep 17 00:00:00 2001 From: Nikolaus Filus Date: Tue, 4 Aug 2009 12:15:34 +0000 Subject: [PATCH] fixes #1103 git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@8765 6bcd3966-0018-0410-8128-fd23d134de7e --- src/check_snmp_win.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/check_snmp_win.pl b/src/check_snmp_win.pl index 3cf91d869..6c10d7874 100644 --- a/src/check_snmp_win.pl +++ b/src/check_snmp_win.pl @@ -344,7 +344,8 @@ my $force_critical=0; foreach my $List (@o_descrL) { my $test=0; for (my $i=0; $i< $num_int; $i++) { - if ( $descr[$i] =~ /$List/i ) { $test++; } + if ( !defined($o_noreg) && ($descr[$i] =~ /$List/i) ) { $test++; } + if ( defined($o_noreg) && ($descr[$i] eq $List) ) { $test++; } } if ($test==0) { $output .= ", " if defined($output);