icinga-powershell-framework/lib/core/framework/Get-IcingaCheckSchedulerCheckData.psm1

29 lines
693 B
PowerShell
Raw Normal View History

<#
.SYNOPSIS
Fetch the raw output values for a check command for each single object
processed by New-IcingaCheck
.DESCRIPTION
Fetch the raw output values for a check command for each single object
processed by New-IcingaCheck
.FUNCTIONALITY
Fetch the raw output values for a check command for each single object
processed by New-IcingaCheck
.OUTPUTS
System.Object
.LINK
https://github.com/Icinga/icinga-powershell-framework
#>
function Get-IcingaCheckSchedulerCheckData()
{
if ($null -eq $global:Icinga) {
return $null;
}
if ($global:Icinga.ContainsKey('CheckData') -eq $FALSE) {
return @{ };
}
return $global:Icinga.CheckData;
}