mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
15 lines
384 B
PowerShell
15 lines
384 B
PowerShell
function Write-IcingaPluginResult()
|
|
{
|
|
param (
|
|
[string]$PluginOutput = '',
|
|
[array]$PluginPerfData = @()
|
|
);
|
|
|
|
[string]$CheckResult = $PluginOutput;
|
|
|
|
if ($PluginPerfData.Count -ne 0) {
|
|
$CheckResult = [string]::Format('{0}{1}| {2}', $CheckResult, "`r`n", ([string]::Join(' ', $PluginPerfData)));
|
|
}
|
|
|
|
Write-IcingaConsolePlain $CheckResult;
|
|
}
|