If other error count ignoring is set to -1 via '-Io', other error count is ignored

This commit is contained in:
g.schoenberger
2017-07-19 08:37:05 +02:00
parent c4d269b429
commit 4b768805a8

View File

@ -616,7 +616,7 @@ sub getPDStatus{
}
}
if(exists($PD->{'Other Error Count'})){
if($PD->{'Other Error Count'} > $IGNERR_O){
if(($IGNERR_O != -1) && ($PD->{'Other Error Count'} > $IGNERR_O)){
$status = 'Warning' unless $status eq 'Critical';
push @{$statusLevel_a[1]}, $PD->{'pd'}.'_Other_error_count';
$statusLevel_a[3]->{$PD->{'pd'}.'_Other_error_count'} = $PD->{'Other Error Count'};