diff --git a/lib/icinga/plugin/New-IcingaCheckResult.psm1 b/lib/icinga/plugin/New-IcingaCheckResult.psm1 index eff9d2f..bc4dba1 100644 --- a/lib/icinga/plugin/New-IcingaCheckResult.psm1 +++ b/lib/icinga/plugin/New-IcingaCheckResult.psm1 @@ -20,7 +20,7 @@ function New-IcingaCheckresult() # Compile the check / package if not already done $this.check.Compile() | Out-Null; - if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown) { + if ([int]$this.check.exitcode -ne [int]$IcingaEnums.IcingaExitCode.Unknown -And -Not $this.noperfdata) { Write-Host ([string]::Format('| {0}', $this.check.GetPerfData())); }