mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 14:51:19 -05:00
18 lines
392 B
PowerShell
18 lines
392 B
PowerShell
function Write-IcingaPluginResult()
|
|
{
|
|
param (
|
|
[string]$PluginOutput = '',
|
|
[array]$PluginPerfData = @()
|
|
);
|
|
|
|
[string]$CheckResult = $PluginOutput;
|
|
|
|
if ($PluginPerfData -ne 0) {
|
|
$CheckResult += "`n`r| ";
|
|
foreach ($PerfData in $PluginPerfData) {
|
|
$CheckResult += $PerfData;
|
|
}
|
|
}
|
|
|
|
Write-IcingaConsolePlain $CheckResult;
|
|
}
|