icinga-powershell-framework/lib/icinga/plugin/Write-IcingaPluginOutput.psm1
2021-09-02 09:23:10 +02:00

16 lines
470 B
PowerShell

function Write-IcingaPluginOutput()
{
param (
$Output
);
if ($global:IcingaDaemonData.FrameworkRunningAsDaemon -eq $FALSE -And $global:IcingaDaemonData.JEAContext -eq $FALSE) {
if ($null -ne $global:Icinga -And $global:Icinga.Minimal) {
Clear-Host;
}
Write-IcingaConsolePlain $Output;
} else {
# New behavior with local thread separated results
$global:Icinga.CheckResults += $Output;
}
}