mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
26 lines
704 B
PowerShell
26 lines
704 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Clears the entire check scheduler cache environment and frees memory as
|
|
well as cleaning the stack
|
|
.DESCRIPTION
|
|
Clears the entire check scheduler cache environment and frees memory as
|
|
well as cleaning the stack
|
|
.FUNCTIONALITY
|
|
Clears the entire check scheduler cache environment and frees memory as
|
|
well as cleaning the stack
|
|
.OUTPUTS
|
|
System.Object
|
|
.LINK
|
|
https://github.com/Icinga/icinga-powershell-framework
|
|
#>
|
|
|
|
function Clear-IcingaCheckSchedulerEnvironment()
|
|
{
|
|
if ($null -eq $global:Icinga) {
|
|
return;
|
|
}
|
|
|
|
Get-IcingaCheckSchedulerPluginOutput | Out-Null;
|
|
Get-IcingaCheckSchedulerPerfData | Out-Null;
|
|
Clear-IcingaCheckSchedulerCheckData;
|
|
}
|