icinga-powershell-framework/lib/icinga/plugin/Write-IcingaPluginOutput.psm1

14 lines
315 B
PowerShell
Raw Normal View History

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