mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
13 lines
428 B
PowerShell
13 lines
428 B
PowerShell
function Get-IcingaMemoryPerformanceCounter()
|
|
{
|
|
$MemoryStart = (Show-IcingaPerformanceCounters -CounterCategory 'Memory');
|
|
$MemoryCounter = New-IcingaPerformanceCounterArray -Counter $MemoryStart;
|
|
[hashtable]$Result = @{};
|
|
|
|
foreach ($item in $MemoryCounter.Keys) {
|
|
$counter = $item.trimstart('\Memory\');
|
|
$Result.Add($counter, $MemoryCounter[$item]);
|
|
}
|
|
|
|
return $Result;
|
|
}
|