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

12 lines
263 B
PowerShell

function Write-IcingaPluginOutput()
{
param(
$Output
);
if ($global:IcingaDaemonData.FrameworkRunningAsDaemon -eq $FALSE) {
Write-Host $Output;
} else {
$IcingaThreadContent['Scheduler']['PluginCache'] += $Output;
}
}