mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
24 lines
640 B
PowerShell
24 lines
640 B
PowerShell
|
|
function Get-IcingaCheckSchedulerPerfData()
|
||
|
|
{
|
||
|
|
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('PluginPerfData') -eq $FALSE) {
|
||
|
|
return $null;
|
||
|
|
}
|
||
|
|
|
||
|
|
$PerfData = $IcingaDaemonData.IcingaThreadContent.Scheduler.PluginPerfData;
|
||
|
|
$IcingaDaemonData.IcingaThreadContent.Scheduler.PluginPerfData = @();
|
||
|
|
|
||
|
|
return $PerfData;
|
||
|
|
}
|