mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
23 lines
669 B
PowerShell
23 lines
669 B
PowerShell
function Get-IcingaCheckSchedulerPluginOutput()
|
|
{
|
|
if ($null -eq $IcingaDaemonData) {
|
|
return $null;
|
|
}
|
|
|
|
if ($IcingaDaemonData.ContainsKey('IcingaThreadContent') -eq $FALSE) {
|
|
return $null;
|
|
}
|
|
|
|
if ($IcingaDaemonData.IcingaThreadContent.ContainsKey('Scheduler') -eq $FALSE) {
|
|
return $null;
|
|
}
|
|
|
|
if ($IcingaDaemonData.IcingaThreadContent.Scheduler.ContainsKey('PluginCache') -eq $FALSE) {
|
|
return $null;
|
|
}
|
|
|
|
$CheckResult = [string]::Join("`r`n", $IcingaDaemonData.IcingaThreadContent.Scheduler.PluginCache);
|
|
$IcingaDaemonData.IcingaThreadContent.Scheduler.PluginCache = @();
|
|
|
|
return $CheckResult;
|
|
}
|