git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@8765 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Nikolaus Filus 2009-08-04 12:15:34 +00:00
parent eeb56640a8
commit 5cd7c6e78d
1 changed files with 2 additions and 1 deletions

View File

@ -344,7 +344,8 @@ my $force_critical=0;
foreach my $List (@o_descrL) { foreach my $List (@o_descrL) {
my $test=0; my $test=0;
for (my $i=0; $i< $num_int; $i++) { 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) { if ($test==0) {
$output .= ", " if defined($output); $output .= ", " if defined($output);