mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
16 lines
418 B
PowerShell
16 lines
418 B
PowerShell
function Write-IcingaPluginOutput()
|
|
{
|
|
param (
|
|
$Output
|
|
);
|
|
|
|
if ($global:IcingaDaemonData.FrameworkRunningAsDaemon -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;
|
|
}
|
|
}
|